https://github.com/kunagpal/express-boilerplate
A project scaffold for Express and MongoDB
https://github.com/kunagpal/express-boilerplate
boilerplate boilerplate-application boilerplate-template express express-boilerplate mongodb nodejs scaffold
Last synced: 5 months ago
JSON representation
A project scaffold for Express and MongoDB
- Host: GitHub
- URL: https://github.com/kunagpal/express-boilerplate
- Owner: kunagpal
- License: gpl-3.0
- Created: 2016-07-27T11:13:15.000Z (about 9 years ago)
- Default Branch: develop
- Last Pushed: 2020-06-03T10:49:13.000Z (over 5 years ago)
- Last Synced: 2025-04-04T20:51:18.997Z (6 months ago)
- Topics: boilerplate, boilerplate-application, boilerplate-template, express, express-boilerplate, mongodb, nodejs, scaffold
- Language: JavaScript
- Homepage:
- Size: 1.17 MB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 62
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://waffle.io/kunagpal/express-boilerplate)
[](https://codeclimate.com/github/kunagpal/express-boilerplate)
[](https://codeclimate.com/github/kunagpal/express-boilerplate/coverage)
[](https://codeclimate.com/github/kunagpal/express-boilerplate/issues)
[](https://david-dm.org/kunagpal/express-boilerplate)
[](https://david-dm.org/kunagpal/express-boilerplate#info=devDependencies)
[](https://travis-ci.org/kunagpal/express-boilerplate)
[](https://ci.appveyor.com/project/kunagpal/express-boilerplate/branch/master)
[](https://bestpractices.coreinfrastructure.org/projects/352)
[](https://greenkeeper.io/)
[](http://inch-ci.org/github/kunagpal/express-boilerplate)
[](http://www.gnu.org/licenses/gpl-3.0)


[](https://nodesecurity.io/orgs/kunagpal/projects/a1c7ab5f-dd68-4144-86f4-c82ae2b7e04d)# express-boilerplate
## A project scaffold intended for use with Express.js
### This project is hosted: markdown-style-project-link
### For exhaustive documentation, check out the project [wiki](https://github.com/kunagpal/express-boilerplate/wiki)
### Please report any bugs or issues [here](https://waffle.io/kunagpal/express-boilerplate)
#### Installation instructions
* Install the latest edition of Node.js from [here](https://nodejs.org/en/download/)
* Install the latest version of MongoDB from [here](https://www.mongodb.org/downloads#production)
* Install all dependencies with `npm i --silent`
* Create a file `.env` in the root directory with the following contents:```
GOOGLE_ID=value
GOOGLE_KEY=value
TWITTER_ID=value
TWITTER_KEY=value
FACEBOOK_ID=value
FACEBOOK_KEY=value
EMAIL_PASSWORD=value
COOKIE_SECRET=randomsecretstring
SESSION_SECRET=randomsecretstring
MONGO=mongodb://127.0.0.1:27017/testDb
```* Start the localhost mongod server via `mongod`
* Run the server locally at port 3000 or "PORT" in process.env with `npm start`
* View the website at `localhost:3000` within your browserUtility scripts:
* `npm run archive`: Creates a zip archive of the form `-.zip` in `out/archive`.
* `npm run check`: Checks for dependency updates using `npm-check`.
* `npm run console`: Starts an interactive console with the app and it's globals pre-loaded.
* `npm run make-docs`: Generates a project documentation manifest at `out/docs/`.
* `npm run make-wiki`: Generates a compiled project wiki at `out/wiki/REFERENCE.md`.
* `npm run pack`: Minifies static assets in `public/*`.External Requirements:
* A MongoDB instance running locally or valid `MONGO` string in process.env
* Valid social authentication tokens in process.env
* A valid `COOKIE_SECRET` string in process.env for better security (Optional)
* A valid `SENTRY_DSN` token in process.env for Sentry error alerts (optional)