This is a boilerplate API server using Node.js and PostgreSQL. It has a TODO example and user auth (which needs some work to finish up)
Node.js (duh) 6.5.x +
PostrgreSQL 9.4+
Nodemon
npm -g install nodemon
npm install
Rename .env.sample
to .env
and add your configuration credentials
Run database migrations & seeds:
node source/middleware/database/migrate.js
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull/merge request to a maintainer :D
in no particular order
- Decalative routes
- Public vs. Private(auth) routes
- Migrations & Seeds
- Add security best practices
- Use JSON API specification
-
Implement password encryption - Use JWT for private route auth
- Create Postman collection
- Add mailer
- Use faker for seeding
- Utilize swagger documentation
- Dockerize
- Implement SSL
- Add health checks
- Add tests
- Implement Yo Generator
-
Problem with related link in return endpoints/endpoints-example#27
-
https://github.com/sgraham785/node-postgres-api-server/issues