Skip to content

hj690/lvcheng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lvcheng

Run:

npm install --save
DEBUG=lvcheng npm start

Setup dev env on OS X

  1. Install https://www.docker.com/toolbox
  2. Run Docker Quickstart Terminal. You will see your default IP in terminal.
  3. Build image and run container. It run on foreground and print the nodejs log. Add -d for running background.
docker build -t lvcheng .
docker run --name dev -v `pwd`:/app:ro -p 27017:27017 -p 28017:28017 -p 8080:8080 lvcheng
  1. Browse the web from default IP with port 8080
  2. To stop or start container:
 docker stop dev
 docker start dev

Development steps

  1. Update source code.
  2. Check web on browser: http://default IP:8080
  3. See nodejs log in console.

Random note

  1. Run mongodb server:
docker run -d -p 27017:27017 -p 28017:28017 -e AUTH=no tutum/mongodb
  1. Update the IP in app.js to be your default IP

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages