CAR SALE API
Car Sale Api is an API build using Javascript and Express. And runs on Mongodb database.
Learning Goals
- Express Error Handling
- Authentication using JWT
- Authorization
- Using mongoose and Mongodb
Getting Started
- Install mongodb on your system ( click here for more information )
- Install node and npm
- Clone the repo and
cd car-sale-api
- Run
npm install
to install dependecies - Run mongodb deamon
- Run
npm run dev
to run the program in development.
ENVIROMENT VARIABLES:
MONGODB_URI: uri to connect to mongodb
JWT_SECRET: Jasonwebtoken. Secret
JWT_EXPIRE: Json web token expire time.