Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

StevenHHB/couples_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

27 Commits

Repository files navigation

Couples Game Web Application

The Couples Game Web Application is a fun and interactive platform where couples can play a game together and track their game sessions. This README provides an overview of the application, how to set it up locally, and deploy it to Heroku.

currently live @ www.442479.com

Table of Contents

Features

  • Users can create accounts, log in, and log out.
  • Couples can join the platform and play a game together.
  • Each user can participate in a game session and track their click count.
  • Game session history with outcomes (win/loss) is displayed.
  • Couples can send and accept relationship requests.
  • Interactive countdown timer for game sessions.

Getting Started

Prerequisites

  • Python (>=3.6)
  • Git
  • Heroku CLI (for deployment)

Installation

  1. Clone the repository:
bashCopy code
git clone https://github.com/your-username/couples-game-app.git cd couples-game-app
  1. Create a virtual environment and activate it:
bashCopy code
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
  1. Install the required packages:
bashCopy code
pip install -r requirements.txt
  1. Set up the database:
bashCopy code
flask db init flask db migrate -m "Initial migration" flask db upgrade

Configuration

Create a .env file in the project directory and configure the following environment variables:

dotenvCopy code
SECRET_KEY=your-secret-key DATABASE_URL=sqlite:///app.db

Usage

  1. Run the application locally:
bashCopy code
flask run
  1. Access the application in your web browser at http://localhost:5000.

Deployment to Heroku

Follow these steps to deploy the Couples Game Web Application to Heroku:

  1. Log in to your Heroku account:
bashCopy code
heroku login
  1. Create a new Heroku app:
bashCopy code
heroku create your-app-name
  1. Configure environment variables on Heroku:
bashCopy code
heroku config:set SECRET_KEY=your-secret-key heroku config:set DATABASE_URL=your-database-url
  1. Push your code to Heroku:
bashCopy code
git push heroku master
  1. Open the deployed app in your browser:
bashCopy code
heroku open

Contributing

Contributions are welcome! If you have suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /