npm install
pip install -r requirements.txt
- Run
echo "DANGEROUSLY_DISABLE_HOST_CHECK=true" > .env.development.local
in the project directory - run "heroku login -i" to login into heroku
- run "heroku create" to create a project
- run "heroku addons:create heroku-postgresql:hobby-dev" to create a remote postgres db
- run "heroku config" to see the heroku config files
- set DATABASE_URL as an environment variable
- Run command in terminal (in your project directory):
python app.py
- Run command in another terminal,
cd
into the project directory, and runnpm run start
- Preview web page in browser '/' on two different tabs
- Play tic-tac-toe
- Create a Heroku app:
heroku create --buildpack heroku/python
- Add nodejs buildpack:
heroku buildpacks:add --index 1 heroku/nodejs
- Push to Heroku:
git push heroku main
- Spectator id doesn't change when they become a player so when they win it shows as a loser
- I've tried different thing to try to fix this but couldnt
- Users can log in with the same login
- Make a list of people that have login
- If user is logged in, then return error if someone else tries to log in
- Restart button is not working, backend gets an ValueError: Too many packets in payload whenever play again is clicked
- Not sure where the error is coming from
- Storing board state
- I just stored board state into the backend, and send it out through socket so everyone would have the updated one
- Who's turn it was
- Stored value in database and send it out through sockets