Skip to content
An API for the Florida Lottery Scratch-off game
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
config
controllers
middleware
models
seed_data
startup
tests
views
web-scrapers
.gitignore
README.md
commands.txt
index.js
package-lock.json
package.json
swagger.json

README.md

///How to set-up and run the Lotto App////

//Install dependencies

  1. npm install --save

//Seed MongoDb

  1. 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/

  1. 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

  1. Set an enviroment variable (eg. In cmd/Terminal - export Lotto_jwtPrivateKey=password)

  2. Run with "node index.js"

You can’t perform that action at this time.