- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
Students Web App is a Fullstack application that implements an Angular App consumming a Minimal API service to manage the CRUD of a Sqlite database with a Student table.
🛠 Built With .NET/VS Code
Tech Stack Angular + Minimal API
- GenericRepository
- Dependency Injection
- Unit Testing
- Git Flow
- CORS
To get a local copy up and running, follow these steps.
In order to run this project you need:
Option 1: Visual Studio .NET 2022 updated to use NET Core 7
- Open the solution StudentsWebApp.sln
- Configure Multiple Startup Projects as shown in the image:
- Rebuild Solution to assure that all projects are compiling
- Click Start of F5
- Api Service and Angular App start simultaneosly
- Wait until Angular App loads students data
Option 2: Visual Studio Code with extensions:
- C# for Visual Studio Code
- vscode-solution-explorer
- Open the folder StudentsWebApp containning the solution
- Enter
code .
command to open VS Code - Open folder \SWA.WebAPIService in Terminal and run
dotnet build
anddotnet run
commands - Open folder \SWA.StudentsApp in Terminal and run
dotnet build
anddotnet run
commands - Open Service URL in the browser: https://localhost:7210/swagger/index.html
- Open App URL in the browser: https://localhost:7183
- Wait until Angular App loads students data
Clone this repository to your desired folder:
Example commands:
cd [Desired_Folder]
git clone https://github.com/NeckerFree/StudentsWebApp
cd StudentsWebApp
Install this project with:
If necessary configure Base API Service URL in
SWA.StudentsApp\ClientApp\proxy.conf.js
variable: target: 'https://localhost:7210/'
Step 2,3 in Option 1 (VS.NET) Steps 3,4 in Option 2 (VS Code)
Copy the database to a any different folder of this solution
- Default folder (C:\Temp):
- Config file: SWA.WebAPIService\appsettings.json
- String connection: "StudentsDBConnection": "Data Source=C:\Temp\sample_DB.db3"
To run the project, execute the following command:
Step 4 in Option 1 (VS.NET) Steps 3,4 in Option 2 (VS Code)
👤 Elio Cortés
- GitHub: @NeckerFree
- Twitter: @ElioCortesM
- LinkedIn: elionelsoncortes
- To complete unit testing configuration
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project please start my project
Add at least 2 questions new developers would ask when they decide to use your project.
-
What commands are required to Scaffold SQLite database?
dotnet add package Microsoft.EntityFrameworkCore.Design
dotnet tool install --global dotnet-ef
dotnet add package Microsoft.EntityFrameworkCore.Sqlite
dotnet ef dbcontext scaffold "data source=C:\Temp\sample_DB.db3" Microsoft.EntityFrameworkCore.Sqlite --output-dir Models --context-dir Data --namespace SWA.DataAccess.Models --context-namespace SWA.DataAccess.Data --context StudentsContext -f --no-onconfiguring
-
How can I generate and/or modifies files based on a schematic.
This project is MIT licensed.