Customized version of Sequelize's express-example showing a sample application (data is from superenalotto).
- You'll need MySQL installed on your machine (i.e. with
brew install mysqlor Docker) - You won't need
yarn, simply usenpm runinstead, butyarnis preferred
- Step 0
cp config/config.mock.json config/config.jsonCreate your config file from the mocked one and customize it with your credentials
- Step 1
yarn feedWill download all the Games data
- Step 2
yarn db:migrateWill run the migrations. If you run the app for the first time, this will be taken care by sequelize.sync() in bin/www.
yarn db:migrate:undo:allWill undo the migrations (if needed)
- Step 3
yarn seed:allWill seed data in your DB
yarn seed:undoWill undo the seeding (if needed)
- Step 4 (Profit)
yarn start