git clone git@github.com:angelajholden/express-test.git
npm install
Initialize node app and create package.json
npm init -y
Install express
and ejs
npm i express ejs
Install nodemon
as dev dependency
npm i -D nodemon
Add nodemon
to package.json/scripts
"scripts": {
...
"start": "node index",
"dev": "nodemon index"
},
To start the app
npm run dev
Create new file .gitignore
and add these folder/files
node_modules
tmp
.tmp
.npm-debug.log
Initialize git
repository
git init
Stage files and commit
git add .
git commit -m "initial commit"
Check your status
git status
- Login to your personal Github account
- Click New Repository (green button)
- Add Repository name (required)
- Add Description (optional)
- Select Public or Private (required)
- Do not initialize repository with README (you can do this later)
- Do not create a
.gitignore
(you already did this) - Create a license (optional)
Change the branch name from master
to main
git branch -M main
Add the remote origin URL - copy this from Github
git remote add origin git@github.com:<user_name>/<repository_name>.git
Push to your Github repository
git push -u origin main
Refresh your Github repository page! 🎉