Skip to content

Latest commit

 

History

History
61 lines (29 loc) · 1.41 KB

README.md

File metadata and controls

61 lines (29 loc) · 1.41 KB

Face

An API for the Florida Lottery Scratch-off game

🚀 Tech Stack

Client: HTML, CSS

Server: Node, Express, MongoDB

Demo

https://lottoticketapi.herokuapp.com/api-docs/

Screenshots

Florida Lottery API

🔗 Links

portfolio twitter

How to set-up and run

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"

[MIT]