One-To-Ten, a project inspired by OKCupid, is a platform that allows users to take surveys and match with other users based on response data.
- Python 3.10
- PostgreSQL 12s
-
Clone the project repository
git clone git@github.com:JTannerShaw/One-to-Ten.git
-
Install Dependencies
-
Flask:
pipenv install --dev -r dev-requirements.txt && pipenv install -r requirements.txt
-
React-App:
npm install
- Create a .env file base on the .env.example given in the root directory
FLASK_APP=app
FLASK_ENV=development
SECRET_KEY=<you strong secret key>
DATABASE_URL=postgresql://<username>:<password>@<server>/<database>
-
Setup your username and database based on what you setup in your .env
-
Migrate and seed the database by intiating the pipenv shell from the root directory.
pipenv shell
flask db upgrade
flask seed all
-
Start the server from the root directory.
flask run
-
Start the frontend from the react-app directory.
flask run