- Clone this repository
git clone https://github.com/asaeldev/bedu-cars-api.git
- Configure environment variables
- Create a copy of .env.example and rename it to .env
- Set the correct values for each of the following variables depending on your local configuration
Name | Description | Default Value |
---|---|---|
NODE_ENV | dev | |
PORT | 300 | |
DATABASE_URL | "postgres://user:[email protected]:5432/dbname" | |
JWT_SECRET | "" |
- Install dependencies
cd bedu-cars-api
npm install
- Install postgresql and pgadmin locally with Docker
docker-compose up
- Build and run the project
npm run dev