Very simple api in node js/express, developed solely for the purpose of practise in node js itself and trying to learn a few industry best practices as referenced in nodebestpractices. Feel free to checkout these best practices in node js, I assure you there's some awesome stuff there.
- Clone the project
git clone git@github.com:kiptoo-korir/practice-node-api.git
- Install the dependencies through
npm i
- Create your database in postgres
- Run the queries found in the sql files located in the db/migrations directory
- Create a .env file from the .env.example in the root directory
- Setup your .env file by filling in your database credentials among other details
In the development environment, nodemon is used to run the server, using the command
npm run dev
Will be including at least a postman collection in the repository for ease of playing around with the api and if time allows proper api documentation
Feel free to pitch in with contributions and or corrections on the code, Thanks.