-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
# phit-test | ||
# phit-test | ||
|
||
# Initial Setup | ||
Only do these steps if this is your first time working on the project. | ||
|
||
## Set up the virtual environment | ||
First, install virtual environment if you do not have one. To install, run `pip install virtualenv`. | ||
|
||
Cd into the directory that you have cloned the repository to. Then, you can set up a virtual environment by running `virtualenv venv`. This will create a virtual environment named "venv". | ||
|
||
To start (activate) the virtual environment, which you hae to do before you start working on the project or following through the next steps, run `source venv/bin/activate`. | ||
|
||
To leave (deactivate) the virtual environment, run `deactivate`. | ||
|
||
## Dependencies | ||
Activate virtual environment and run the following command to install all dependencies as outlined in requirements.txt. Run `python -m pip install -r requirements.txt` | ||
|
||
## Setting up Django Admin | ||
Then cd into phittestv1. Run `python manage.py migrate`. Then run `python manage.py createsuperuser` to create an admin account to log into Django Admin Dashboard. The username could be anything that you choose, and it could be set differently for each member of the group. However, I used "admin" for both the username and password. When it asks for the email, you can skip by pressing an "enter" on your keyboard. If you use a short password, it will warn you, but just respond "y" and you can still create an account. | ||
|
||
## Running the website locally | ||
Make sure you have cd-ed into phittestv1. Then run `python manage.py runserver`. To quit the server, press control+C. |