node-express-postgresqlL is a REST API developed with Docker, Node.js, PostgreSQL, and Knex.js. You can find user table created of migration folder.
You can find example :
-controller
-modal
-route- You'll need Docker and docker-compose.
$ git clone https://gitlab.com/maltem-africa-lab/node-express-postgresql.git-
Fill all variables necessary on nodemon.json and docker-compose.yml.
-
Build Docker container locally:
$ docker-compose up -d --build- Run migrations & seed(if you have seed content):
Migrate to create Tables on your PostgreSQL Database:
$ npx knex migrate:latest
Seed to fill data on tables:
$ npx knex seed:runRun your container locally
docker-compose up -dand then start your server to:
npx nodemonGo to http://localhost:5000/api/v1 to see the Express app.