- Flask
- PostgreSQL
- React.js
- Fork and Clone the Repository.
- Move to the backend directory.
cd backend
- Install the requirements.txt file
pip install -r requirements.txt
- Create virtual environment and depending on OS, activate it.
virtualenv env
env/Scripts/activate
or
virtualenv env
source env/Scripts/activate
- Make a .env file and add the PostgreSQL username (DB_USERNAME), password (DB_PASSWORD), host (DB_HOST), Database Name (DB_NAME) in it.
DB_USERNAME=
DB_PASSWORD=
DB_HOST=
DB_NAME=
- Run the Flask server.
python app.py
- Open another terminal, and move to frontend directory.
cd frontend
- Install the packages
yarn
- Run the frontend
yarn dev
- Open psql Command Shell
\l
for viewing all databases.\c <db-name>
for switching to the database where data is stored.select * from "user";
for viewing all the records.