Accept invitation to repo
Clone repo
a. Open terminal in directory you want the repo directory to be located (e.x. Projects)
b. git clone https://github.com/RohitMovva/BookIt.git
Setup frontend packages
a. Open terminal in the directory (ctrl` in vscode)
b. Install npm
c. Run the following command to setup pnpm:
npm install -g pnpm
d. Setup the pnpm project:
cd frontend
pnpm i
Setup backend packages:
a. Install python if not already installed
b. Install virtualenv
pip install virtualenv
c. Create virtual environment
cd /path/to/your/project
cd flask-backend
virtualenv env
d. Setup the database
flask db upgrade
cd into the frontend folder
cd frontend
Run the frontend
pnpm run dev
Stop the frontend when you're done (ctrl+c)
cd into the backend folder:
cd flask-backend
Activate virtual environment:
Windows:
.\env\Scripts\activate
Linux and Mac:
source env/bin/activate
Install dependencies:
pip install -r requirements.txt
Run app:
Windows:
set FLASK_APP=app.py
set FLASK_ENV=development
flask run
Linux and Mac:
export FLASK_APP=app.py
export FLASK_ENV=development
flask run
Stop the backend when you're done (ctrl+c)
Disconnect from the virtual environment:
deactivate