-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error with server when implementing the private and public routes
- Loading branch information
1 parent
e9ba9a1
commit ae85daf
Showing
12 changed files
with
4,804 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
.env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: node src/server.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 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 master branch. |
Oops, something went wrong.