This repository was archived by the owner on Aug 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Project Setup
Seung Won [Tom] Lee edited this page Jul 8, 2018
·
16 revisions
- Django 1.11.X
- Python 2.7.X
- jQuery 3.X
- Javascript
- Celery
- RabbitMQ
- PostgreSQL 10.X
- Heroku
Note: Step 8 is optional.
-
IMPORTANT! Decide where to keep the project and clone the repo using the clone the repo on the home page
-
Install Python 2.7.15 and pip. Linked above
- [Windows] Download get-pip.py file. Install using:
python install get-pip.py - [macOS] Follow the this guide.
- [Windows] Download get-pip.py file. Install using:
-
Install PostgreSQL and initialize the default schema. Linked above
- [macOS] Suggest using Postgres.app as it is a lot simpler. https://postgresapp.com/
- Initialize a default database with name
rebootand superuserroot - [macOS] Try running the shell script
sh scripts/start_db.sh; sh scripts/create_db.sh(A talented friend wrote it for another project). It may or may not work - Otherwise, reference https://wiki.postgresql.org/wiki/First_steps
-
Open Terminal and install virtualenv
pip install virtualenv- Inside the repo, use the setup command
cd reBOOT/
make setup- Launch your virtualenv
# Windows
venv\Scripts\activate
# macOS / Linux
source venv/bin/activate-
Make a local copy of the
.env.samplefile and rename it to.env -
Install rabbitMQ using
brew install rabbitmqon a Mac or the above link -
Install Heroku CLI through the link above
Note: Step 2 will have to be run occasionally when there are database changes to be initialized or to be made.
- Run the default command after activating the virtualenv
# venv/Scripts/activate OR source venv/bin/activate
make- Run database migration
make migrate-
Hopefully, it worked for you 👍
-
Exit the project
make exit