Setup Your Dev Environment - AndyRewLy/PlanIt GitHub Wiki
Required Installations
- npm
- python3
- virtualenv
To set up a virtual environment
The first two parts should only be done once
- Make sure you have virtualenv installed if not enter
pip install virtualenv - Go to your the project's root folder and enter
virtualenv -p {path to python3} env
Ex:virtualenv -p /usr/local/bin/python3 env - Activate the virtualenv, enter
source {path to env folder}/bin/activate
Now you should see your environment name in paren prepended to your terminal input - To deactivate your virtualenv, enter
deactivate
NOTE: Make sure you have activated your virtualenv before installing
To Install npm Dependencies
- Run
npm installin thefullstack_template/planit-uidirectory.
To Install Python3 Dependencies
- Run
pip3 install -r requirements.txtin thefullstack_template/serverdirectory.
Setting up the database
- Go to the directory:
fullstack_template/server - Run the command
python db_create.py - Run the command
python db_setup.py
After you setup your environment and your database, you can now run the server.
- Go to the directory:
fullstack_template/planit-ui - Run the command
npm run start - Go to the directory:
fullstack_template/server - Run the command
python server.py - Open a browser and go to
localhost:3000