node-express-mongoose-demo
A simple demo app using node and mongodb for beginners (with docker)
File Explorer
Download Latest Version (.zip)- test.yml
- FUNDING.yml
- stale.yml
- articles.js
- comments.js
- tags.js
- users.js
- comment.pug
- index.js
- article.js
- user.js
- article.pug
- edit.pug
- form.pug
- index.mobile.pug
- index.pug
- new.pug
- show.mobile.pug
- show.pug
- comment.pug
- form.pug
- foot.pug
- footer.pug
- head.pug
- header.pug
- messages.pug
- default.pug
- mobile.pug
- auth.pug
- login.pug
- show.pug
- signup.pug
- 404.pug
- 422.pug
- 500.pug
- development.js
- production.js
- test.js
- authorization.js
- require-https.js
- github.js
- google.js
- linkedin.js
- local.js
- twitter.js
- express.js
- imager.js
- index.js
- passport.js
- routes.js
- Dockerfile
- wait-for-it.sh
- app.css
- bootstrap.min.css
- bootstrap.min.css.map
- jquery.tagsinput.css
- app.js
- bootstrap.min.js
- bootstrap.min.js.map
- jquery.min.js
- jquery.tagsinput.min.js
- helper.js
- test-articles-create.js
- test-users-create.js
- .babelrc
- .dockerignore
- .env.example
- .eslintignore
- .eslintrc
- .gitignore
- CODE_OF_CONDUCT.md
- docker-compose.yml
- Dockerfile
- ecosystem.config.js
- fly.toml
- LICENSE.txt
- package-lock.json
- package.json
- Procfile
- README.md
- SECURITY.md
- server.js
# Installation Guide
git clone https://github.com/madhums/node-express-mongoose-demo
Downloads the entire project code from GitHub to your computer.
cd node-express-mongoose-demo
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker-compose up -d
Runs the command against the services defined in the compose file.
docker-compose logs -f
Runs the command against the services defined in the compose file.
docker-compose exec node npm i
Runs the command against the services defined in the compose file.
docker-compose exec -e MONGODB_URL=mongodb://mongo:27017/noobjs_test node npm test
Runs the command against the services defined in the compose file.
Pulled directly from this repo's README.
3. Node.js
Easynpm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
npm test
Type this command into your terminal and run it.
npm i
Type this command into your terminal and run it.
docker-compose exec node npm i
Runs the command against the services defined in the compose file.
Pulled directly from this repo's README.
