Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sjcshin authored Feb 28, 2022
1 parent 96ef9f9 commit 3024dff
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
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.

0 comments on commit 3024dff

Please sign in to comment.