Consists on endpoints and UI to manage simple tasks
- .NET Core 8.0
- Nodejs 20.11.1
- PNPM - Package Manager
All commands described in this document section must be executed from the root folder (aka: the folder of this document). However, the cd <backend/frontend> can be omitted if you are inside the related folder
Use dotnet tool to restore the packages
cd backend
dotnet restore
Use pnpm to to restore the packages
cd frontend
pnpm i
Running the project in debug mode will perform the database migration to create the database and tables
Use the dotnet cli to run the backend service. For local development purpose we can use http protocol
dotnet run --project .\backend\TMS.Presentation\TMS.Presentation.csproj --launch-profile "http"
It will start the server at: http://localhost:5234
Notes:
- You can use the profile "https" to start the server on SSL protocol
- The swagger ui is available to use in development mode. Access that at: http://localhost:5234/swagger/
- Currently the cors settings allow requests from the origin http://localhost:4173. Make sure you have the same host
Use the pnpm to run
cd frontend
pnpm i
pnpm run build
pnpm run preview
It will start the server at: http://localhost:4173
Note: Currently there is an environment VITE_API_ENDPOINT variable file at ".env" configuring the API endpoints to http://localhost:5234. Make sure if you have different ports or protocol, update that variable accordingly.