An API for the Florida Lottery Scratch-off game
Client: HTML, CSS
Server: Node, Express, MongoDB
https://lottoticketapi.herokuapp.com/api-docs/
Install dependencies
- npm install --save
- Make sure that you MongoDB is installed and running on your machine
macOS - https://docs.mongodb.com/v3.2/tutorial/install-mongodb-on-os-x/
- Import sample data from JSON file (lotto-data.json)to your database with teh followinng command :
mongoimport --db lotto --collection tickets --drop --file seed_data/lotto-data.json --jsonArray
-
Set an enviroment variable (eg. In cmd/Terminal - export Lotto_jwtPrivateKey=password)
-
Run with "node index.js"
[MIT]