Skip to content

pratishshr/node-express-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-express-starter

Initial configuration for a node-express project.

Setup

 # Rename config.json.example to config.json and add necessary configurations

 # Install dependencies
 npm install
 
 # Run server with nodemon
 npm run dev
 
 # Build and run server
 npm start
 
 default port: 4444
 
 # Alternatively, set environment variable PORT to change the port number.
 PORT=8080 npm run dev
 
 PORT=8080 npm start
 

Migrations

# Install knex globally 
npm install knex -g

# Run migration
cd src
knex migrate:latest

# Rollback
knex migrate: rollback

# Seeds
knex seed:run

open http://localhost:4444 in the browser sample resource: http://localhost:4444/users

About

Initial configuration for a node-express project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published