This is a project created by Andy Lau and Michael Singer for CSE 298 @ Lehigh University. The web app allows users to create and join rooms where they compete and draw to decide the ultimate winner for the best guesser or best drawer.
To set up the web environment, follow these steps:
-
Download latest version of Node 18
-
Download dependencies
npm install
-
Run locally
npm start
To set up the project environment, follow these steps:
-
Clone the repository to your local machine.
git clone https://github.com/mis825/lau-singer.git
-
Create a Python virtual environment.
cd lau-singer cd server python -m venv venv
-
Activate the virtual environment.
- On Windows
. venv\Scripts\activate
- On Unix or MacOS
source venv/bin/activate
-
Make sure you select the venv python interpreter. If it doesn't show...
-
In VSCode open your command palette — Ctrl+Shift+P by default
-
Look for Python: Select Interpreter
-
In Select Interpreter choose Enter interpreter path... and then Find...
-
Locate env folder, open Scripts folder , and choose python or python3
-
-
Install the required dependencies using pip.
pip install -r requirements.txt
-
Create a .env file in the project root directory (make sure that you don't commit this file!).
NOTE: The .env file is used for storing sensitive information and configuration parameters. Populate it with any required environment variables.
Add the database url like this:
DATABASE_URL=your_database_url
-
Update the project code to use environment variables.
import os from dotenv import load_dotenv load_dotenv() # Access environment variables using os.getenv("VARIABLE_NAME")
- Run the application in the root directory via this terminal command
flask run
To do