Skip to content

API Restful for the "Arquitectura de Sistemas" course.

Notifications You must be signed in to change notification settings

2kSebaNG/api_rest_ev4

Repository files navigation

API Restful

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.

Pre-requisites

Installation and configuration

  1. Clone the repository
git clone https://github.com/2kSebaNG/api_rest_ev4
  1. Navigate to the project directory
cd api_rest_ev4
  1. Restore project dependencies
dotnet restore
  1. Create a .env file on the root of the project and fill the environment variables
cp .env.example .env

In the .env file, replace:

  • JWT_SECRET with your JWT secret key
  • DB_CONNECTION with 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.

  1. Run the project
dotnet run

The server will start on port 5052 and the seeders will be created automatically. Access the API via http://localhost:5052.

Table of contents

As mentioned in the previous section, the seeders are loaded automatically with the dotnet run command.

The seeder contains:

  • 150 products

Author

About

API Restful for the "Arquitectura de Sistemas" course.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published