- Pre-requisites
- Installing the WebApp
- Setting Up the Virtual Environment
- Installing Backend requirements
- Installing Frontend requirements
- Installing PostgreSQL Database
- Starting the Backend:
- Starting the Frontend
Make sure these are installed before continuing with the rest of the installations. You may click on the links for the tutorial.
You can clone this repo to start using this webapp in your local machine
Type the following command in the terminal in any working directory
git clone https://github.com/nithinmanoj10/Plannr.git
Install virtualenv
pip install virtualenv
Go back one directory and install the PlannrEnv environment folder.
cd ../
python -m virtualenv PlannrEnv
Before activating the virtualenv, we need to set the Set-ExecutionPolicy as unrestricted.
- Open Powershell as administrator
- Run the following
Set-ExecutionPolicy unrestricted
- Selection option A for
[A] Yes to All
Now go back to the terminal you were using earlier
Activate the environment
.\PlannrEnv\Scripts\activate.ps1
Now go into the plannr_backend
folder and install all the requirements
cd .\Plannr\plannr_backend
pip install -r requirements.txt
Go into the plannr_frontend
folder and install all the requirements
cd ..\plannr_frontend
npm install
We will be using the postgreSQL as our database. Make sure it is installed in your system. You can follow this video tutorial to do so.
Note: Please make sure to remember the password you have set as it is really important when starting the database. Recommended that the password only has alphabets and numbers and no special characters.
Please follow the given steps after installing PostgreSQL to setup a local session of the Plannr Database.
-
Open up SQL Shell (PSQL)
-
Hit enter 4 times to set to the default values and then enter your password.
You can ignore the warning
-
Create the plannr database. You can use
\l
to view all your databases.CREATE DATABASE plannr; \l
-
Connect to the plannr database
\c plannr
-
Connect to the plannr database from
server.py
- Go to
server.py
inside theplannr_backend
folder. - Locate to line 11 and set the
databasePassword
variable to your PostgreSQL password.
- Go to
Note: Make sure the virtual enviroment is activated.
While still inside the plannr_backend
directory, run
python server.py
Check if its running by loading http://localhost:5000/test on your browser.
While inside the plannr_frontend
directory, run
npm start
Open http://localhost:3000/ on your browser. Check if your connection works by looking for a array called connTest in your console.
Once the frontend and backend are working fine, proceed to pray that we finish this somehow. And hopefully, on time π!