This guide provides detailed instructions on how to set up the EDS6397 project on your local machine. The project is built using Django, a high-level Python web framework.
Before you begin, ensure you have Python installed on your system. Python 3.6 or newer is required. You can download Python from https://www.python.org/downloads/.
First, clone the repository to your local machine using the following command:
git clone https://github.com/Po4991212/EDS6397.git
cd EDS6397
It's recommended to use a virtual environment to avoid conflicts with other Python projects. If you don't have virtualenv
installed, you can install it using pip:
pip install virtualenv
Then, create and activate a virtual environment:
# For Windows command prompt
virtualenv venv ## command line will create a virtual environment named venv
cd venv/Scripts ## change directory to activate virtual environment
activate ## run activate script to activate virtual environment
# For Git Bash
source venv/bin/activate # On Windows use venv\Scripts\activate
With the virtual environment activated, install the project dependencies:
pip install -r requirements.txt
This project uses Django's default SQLite database. Initialize the database with the following commands:
python manage.py makemigrations
python manage.py migrate
To access the admin panel, create a superuser:
python manage.py createsuperuser
Follow the prompts to create the superuser account.
Finally, you can run the development server:
python manage.py runserver
The server will start at http://127.0.0.1:8000/. You can now access the application in your web browser.
git pull REMOTE-NAME BRANCH-NAME
# Grabs online updates and merges them with your local work
git push REMOTE-NAME BRANCH-NAME