This is the repository of an API Restful of products from the subject "Arquitectura de Sistemas" at the Universidad Católica del Norte. All the necessary tools and commands to run the project are described below.
- Clone the repository
git clone https://github.com/2kSebaNG/api_rest_ev4- Navigate to the project directory
cd api_rest_ev4- Restore project dependencies
dotnet restore- Create a
.envfile on the root of the project and fill the environment variables
cp .env.example .envIn the .env file, replace:
JWT_SECRETwith your JWT secret keyDB_CONNECTIONwith your host, user, password and port for the MySQL database
Once you have replaced everything, save the changes and move on to the next step.
- Run the project
dotnet runThe server will start on port 5052 and the seeders will be created automatically. Access the API via http://localhost:5052.
As mentioned in the previous section, the seeders are loaded automatically with the dotnet run command.
The seeder contains:
- 150 products