Maintained by NextTrend
Important
Just to clarify, both the 'NxT' project and the 'NextTrend' "company" are fictitious! The fiction is intended to provide a context for software development in line with what the team is learning in a college course: Projeto Detalhado de Software (PDS) Detailed Software Design.
Despite this, I put a lot of effort into making the fictional very tangible.
Note
The old project, called 'SalesWebMVC' has been completely revamped, you can find the old README.md
in
docs/older/README.md
.
As a first requirement to run the application, you need to have
docker
installed on your machine.
First, make sure the Docker Compose services are running, using:
docker compose ps
If not:
# daemon mode (in backgroud)
docker compose up -d
Then, just run the ASP.NET MVC application!
# assuming it is at the root of the project, use the `--project` flag
dotnet run --project ./src/NxT.Mvc/ -lp https
Warning
When you run the application as above, it will use the MySQL database provider by default. The application provides two other providers: PostgreSQL and SQL Server.
To run any other provider, simply provide a new argument via the .NET CLI:
# to run PostgreSQL
dotnet run --project ./src/NxT.Mvc/ -lp https psql
# or, to run SQL Server
dotnet run --project ./src/NxT.Mvc/ -lp https mssql
Any argument supplied that is not a valid provider ["mysql", "psql", "mssql"]
will default to MySQL.