Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aristofun/kanobu-node
KaNoBu on nodejs + express demo
https://github.com/aristofun/kanobu-node
Last synced: 18 days ago
JSON representation
KaNoBu on nodejs + express demo
- Host: GitHub
- URL: https://github.com/aristofun/kanobu-node
- Owner: aristofun
- Created: 2019-02-14T07:54:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T12:48:54.000Z (about 2 years ago)
- Last Synced: 2023-05-14T18:40:17.773Z (over 1 year ago)
- Language: JavaScript
- Size: 221 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Step by step
```
npm init
git init
npm i express
npm i ejswrite server.js
1/
app + listen + "start": "node server.js" + app.get('/')
cl(request.query)
2/
static + images (show browser)
add public/img/ pictures
npm i nodemon -D
"dev": "nodemon server.js -e js,ejs"3/ views
make views/index.ejs
locals.gameStatus VS locals['gameStatus']
4/ dynamic views
EJS conditions
finish server.js
function getGameStatus
let vars and logic
5/ add helper method
all pictures the same
add helper method with choice object
7/
ready to deploy - gitignore!
`heroku create kanobu-node`
git push heroku master
heroku openHomework - more states (https://github.com/KarinaTiurina/rock_paper_scissors/tree/master/app/assets/images)
```
PROFIT!!
https://ejs.co/
https://expressjs.com/en/4x/api.html
https://expressjs.com/en/resources/frameworks.html