Stinkball is a game of Fantasy Football -- but backwards! Instead of drafting the best players, look for the worst. Play against friends and see who wins week-to-week.
This mobile app is currently in development!
This is a full-stack mobile app created with a React Native front-end design, Node.js + Express.js for the API (with extensive Jest unit-testing), and MySQL + Sequelize for the database. The entire codebase is written in TypeScript, to ensure application type safety and prevent bugs.
You can run this mobile app in your local environment in a few simple steps:
- Install npm (or yarn), Node.js, and brew (if you're on a Mac).
- Clone the repository onto your local machine
- Navigate to the
/apidirectory and install dependencies:npm installORyarn install - Navigate to the
/clientdirectory and install dependencies:npm installORyarn install
-
Navigate to the
/apidirectory. -
Install MySQL with brew:
brew install mysql- Check if MySQL is running:
brew services list - If MySQL is not running, start it:
brew services start mysql
- Check if MySQL is running:
-
Install DBeaver, which is a GUI database tool, with brew:
brew install dbeaver-community- Open DBeaver and create a new connection to your MySQL database. Note your port number.
- In the Database Navigator window, right click on your local host connection and right click "Databases" to create a new database. Name it "stinkball".
-
Create .env file:
.env.development.localwith the following code (DB_PORTshould be the port number you noted from DBeaver):
PORT=3000
LOG_DIR=./logs
DB_USER=root
DB_PASSWORD=
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=stinkball
- Create a file pointer from the
.env.development.localto the.env.test.local:$ ln -s .env.development.local .env.test.local - Run the API by using:
npm run startORyarn start(OR$ yarn devto run with nodemon). - This will start the API on port 3000
- Navigate to the
/clientdirectory. - Run the React app by using:
npm startORyarn start
