Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trjohnst/express-mongoose-boilerplate
Boilerplate repo for deploying express apps with mongo databases
https://github.com/trjohnst/express-mongoose-boilerplate
docker dockerfile express expressjs mongodb mongoose mongoose-js mongoosejs nodejs
Last synced: 5 days ago
JSON representation
Boilerplate repo for deploying express apps with mongo databases
- Host: GitHub
- URL: https://github.com/trjohnst/express-mongoose-boilerplate
- Owner: trjohnst
- Created: 2018-11-07T21:33:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-31T21:27:13.000Z (almost 6 years ago)
- Last Synced: 2024-10-18T14:49:51.459Z (30 days ago)
- Topics: docker, dockerfile, express, expressjs, mongodb, mongoose, mongoose-js, mongoosejs, nodejs
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
This is a boilerplate repo for express apps backed by MongoDB and was built using the steps provided in [Writing a CRUD app with Node.js and MongoDB](https://codeburst.io/writing-a-crud-app-with-node-js-and-mongodb-e0827cbbdafb).It provides boilerplate API methods to create, read, update and delete models from an API and store them in MongoDB.
The front-end is all static HTML generated with [pug](https://github.com/pugjs/pug).
MongoDB is run in a docker container and mounted to the local file system for easy persistence. This example uses MongoDB 3.6. You can use [docker documentation](https://docs.docker.com/) to install docker on your OS.
# Usage
```bash
# Run the database
cd database
./run-mongo.sh
# Run the App
cd ../app
npm i
./start-server.sh
```You will now be able to view the app at [localhost:1234](http://localhost:1234/)