1 - Clone the project
git clone https://github.com/emiperalta/deConcesionarias-api
2 - Create an .env file inside the cloned proyect with the following variables (replace them with your values):
DB_USERNAME = <DB_USERNAME>
DB_PASSWORD = <DB_PASSWORD>
DB_DATABASE = <DB_DATABASE>
DB_HOST = <DB_HOST>
PORT = <PORT_NUMBER>
3 - Install dependencies:
cd deconcesionarias-api
npm install
4 - Run database seeds:
npx sequelize-cli db:seed:all
5 - Run server in dev mode:
npm run dev
6 - Make requests to:
http://localhost:{YOUR_PORT}/api/vehicles (GET, POST, PUT, DELETE)
http://localhost:{YOUR_PORT}/api/vehicle-properties (GET, POST, PUT, DELETE)
http://localhost:{YOUR_PORT}/api/categories (GET)