Skip to content

Portfolio project: Backend of sports betting web app (Sequelize, Node, Express, REST API, external API)

Notifications You must be signed in to change notification settings

mipes4/sportsbetting_be

Repository files navigation

Sports betting app ⚽

This is the server repository for my portfolio project Sports betting app. For more details, please refer to the README of the client repository.

Table of contents

BACK END OF THE APP

The Sports betting app is an MVP, not a final version. The beginning of the web app is there, but there is so much more on my wishlist. Take a look at my projectboard to know what is going to be done in the future. For optimal use of the Sports betting app I had to fetch data from an external API to store in a Postgres database. On this way I made it possible to relate the predictions on matches without entering matches manually.

SETUP 🔌

In config/constants and config/config there are listed a few process.env variables. Please replace the values with your own keys in a .env file:

Available Scripts

NOTE ❕ The backend can fill the database with seeding files for demo and development purposes but also fills table Matches and Rounds with data fetched from an external API. See SETUP for entering your own API keys.

In the project directory, you can run:

npm run dev

Runs the app in the development mode. Open http://localhost:4000 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

npm run initdev

Migrates the Postgres database using Sequelize-Cli and seed the database with some seeding files made for demo and development purposes.

About

Portfolio project: Backend of sports betting web app (Sequelize, Node, Express, REST API, external API)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published