Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slashpai/guess_number
simple number guessing game built with node.js
https://github.com/slashpai/guess_number
expressjs javascript nodejs pug
Last synced: 7 days ago
JSON representation
simple number guessing game built with node.js
- Host: GitHub
- URL: https://github.com/slashpai/guess_number
- Owner: slashpai
- Created: 2019-08-03T04:02:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T05:20:56.000Z (about 2 years ago)
- Last Synced: 2024-11-07T05:54:40.656Z (about 2 months ago)
- Topics: expressjs, javascript, nodejs, pug
- Language: JavaScript
- Homepage:
- Size: 84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GUESS NUMBER
A simple number guessing game built with nodejs using express framework and pug as template engine. This project was created as part of learning full stack development using nodejs
## Steps followed in creating this project
* After installing [nodejs](https://nodejs.org/en/) using [nvm](https://github.com/nvm-sh/nvm)
* Install express-generator for creating folder structure
```bash
npm install -g express-generator
```* Set view engine as pug instead of default jade
```bash
express --view=pug guess_number
```* Switch to `guess_number` diretory created
* Remove `jade` from package.json file which was added by express-generator (This will change in future version and won't be required to edit manually) and `pug` latest version as dependency
* Install dependencies
```bash
npm install
```* Fix any package vulnerabilties reported using `npm audit` or `npm audit fix`
* Verify installation and configs
```bash
npm start
```* Add code required and restart app