forked from Mayanwolfe/Full-stack-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instructions.txt
33 lines (20 loc) · 740 Bytes
/
instructions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//1. Initialize npm and install dependencies
// express, dotenv, cors, mongodb, ejs, nodemon (--save-dev)
//2. Require dependencies in server.js
//3. Declare variables
//7. Create gitignore file and push to github
//4. Connect to MongoDB - add connection string to .env file
//5. Add .env file to gitignore
//5. Create Port
//----Test Mongo and Port Connection
//6. Set middleware
//8. Create Public and Views folders - add main.js and style.css to Public and index.ejs to Views
//9. From root, init local git repo and commit
//10. Create heroku repo
// heroku login
// heroku create simple-rap-api
// echo "web: node server.js" > Procfile
// git add .
// git commit -m "changes"
// git push heroku main
//----Test Heroku Link