Skip to content

RabieLakhdar/mongoose-express-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-express-postgresql

Table of Contents


About

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

Installation

  1. You'll need Docker and docker-compose.
$ git clone https://gitlab.com/maltem-africa-lab/node-express-postgresql.git
  1. Fill all variables necessary on nodemon.json and docker-compose.yml.

  2. Build Docker container locally:

$ docker-compose up -d --build
  1. 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:run

Usage

Run your container locally

docker-compose up -d

and then start your server to:

npx nodemon

Go to http://localhost:5000/api/v1 to see the Express app.

About

Boilerplate Node express Mongoose mongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published