Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/selfup/web_guesser
Introductory Sinatra app that simulates a number guessing game
https://github.com/selfup/web_guesser
Last synced: about 1 month ago
JSON representation
Introductory Sinatra app that simulates a number guessing game
- Host: GitHub
- URL: https://github.com/selfup/web_guesser
- Owner: selfup
- License: mit
- Created: 2015-08-14T19:26:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T04:32:53.000Z (over 7 years ago)
- Last Synced: 2024-10-20T07:35:38.423Z (3 months ago)
- Language: Ruby
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# web_guesser
Introductory Sinatra app that simulates a number guessing game that has now been changed to be an ajax example# Setup
If you do not have yarn installed:
`$ bundle && npm install`If you have yarn installed:
`$ bundle && yarn install`### development
If you do not have yarn installed:
`$ npm start`If you have yarn installed:
`$ yarn start`Then in a new tab/pane/screen
`$ bundle exec shotgun`Go to your browser: [localhost](http://localhost:9393)
### production
`$ bundle install --without development test`
If you do not have yarn installed:
`$ npm run prod`If you have yarn installed:
`$ yarn run prod`proxy pass (via apache or nginx) to port **4567** on *127.0.0.1*
***
Production uses WEBrick and can accept 1024 connections by default
### Enjoy!