Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariatorrentedev/express-boilerplate
Boilerplate for an express server, to be deployed to Heroku.
https://github.com/mariatorrentedev/express-boilerplate
express heroku middleware server
Last synced: about 1 month ago
JSON representation
Boilerplate for an express server, to be deployed to Heroku.
- Host: GitHub
- URL: https://github.com/mariatorrentedev/express-boilerplate
- Owner: mariatorrentedev
- Created: 2020-11-29T23:50:35.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-03T21:06:11.000Z (almost 4 years ago)
- Last Synced: 2024-04-15T23:48:00.861Z (7 months ago)
- Topics: express, heroku, middleware, server
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Express Boilerplate!
This is a boilerplate project used for starting new projects!
## Set up
Complete the following steps to start a new project (NEW-PROJECT-NAME):
1. Clone this repository to your local machine `git clone BOILERPLATE-URL NEW-PROJECTS-NAME`
2. `cd` into the cloned repository
3. Make a fresh start of the git history for this project with `rm -rf .git && git init`
4. Install the node dependencies `npm install`
5. Move the example Environment file to `.env` that will be ignored by git and read by the express server `mv example.env .env`
6. Edit the contents of the `package.json` to use NEW-PROJECT-NAME instead of `"name": "express-boilerplate",`## Scripts
Start the application `npm start`
Start nodemon for the application `npm run dev`
Run the tests `npm test`
## Deploying
When your new project is ready for deployment, add a new Heroku application with `heroku create`. This will make a new git remote called "heroku" and you can then `npm run deploy` which will push to this remote's main branch.