Create and host sports drafts (for recreational leagues or potentially fantasy leagues) in live time.
Demo version available here (it may take a minute to load).
Server: Node, Express, Postgres, Sequelize, Socket IO
Client: React, Redux, Webpack/Babel, CSS (Styled Components), Socket IO Client, Jest, Enzyme
-
Install server dependencies:
npm install
-
You will need to run your own local Postgres database and to fill out the database configuration in
server/config.js
accordingly. -
Create and migrate your database:
npm run migrate
-
Create
.env
file in the root directory and fill in the following env variables. Note that you will need to have your own credentials for the e-mail notifications service.# .env PORT=3001 NODE_ENV=development SESSION_KEY=your_own_session_key SESSION_SECRET=your_own_session_secret SERVER_URL=http://localhost:3001 # if using remote database DATABASE_URL=postgres://YOUR_POSTGRES_URL # to enable e-mail notifications MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USER= MAIL_PASS=
-
Install client-side dependencies and generate webpack bundle:
npm run create-js-bundle-dev
-
Run server:
npm start