Skip to content

toweringcloud/express-node-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-express-starter

node based express web app using mongodb and pug

how to run

setup

  • install latest nodejs runtime
$ node -v
v22.16.0

$ npm -v
10.9.2

configure

  • install packages with npm packager
$ npm init
$ npm i
  • create runtime variables
$ cat .env
API_PORT_NO=4000
COOKIE_SECRET={YOUR_COOKIE_SECRET}
DB_URL=mongodb://127.0.0.1:27017/movie
GH_API_URL=https://api.github.com
GH_AUTH_URL=https://github.com/login/oauth
GH_CLIENT_ID={YOUR_GITHUB_CLIENT_ID}
GH_CLIENT_SECRET={YOUR_GITHUB_CLIENT_SECRET}

launch

  • update nodemon setting
{
  "ignore": ["webpack.config.js", "src/client/*", "assets/*"],
  "exec": "babel-node src/index.js"
}
  • run nodejs app with development mode
$ npm run dev

test

About

node based fullstack web app using express v4 + pug + mongodb

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors