Skip to content

kawhyte/Lotto-Tickets-API

Repository files navigation

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]

About

An API for the Florida Lottery Scratch-off game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published