Example RESTful API app using PostgreSQL + Node.js/Express.
It is a loose implementation of a Quora clone called Kwora.
- Practice writing routes
- Practice interacting with an API
- As a backend to build a web UI on top of
Other things you could do:
- Extend the existing database => add more columns/tables to your database to support more complext data modeling
- Migrate to a different tool/library/framework => pick a different library (like
knexfor SQL queries) and update the code to use this library
-
Clone this repo
-
Install all npm packages
$ npm install -
Create database, update schemas, add seed data (optional)
$ npm run db:create ... $ npm run db:schema ... $ npm run db:seed ... -
Start the server
$ npm start
To see other available commands, use $ npm run or read the package.json file.