Table of Contents
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
- Git
- Python (with pip)
- Node.js and npm
- PyCharm (or your preferred IDE)
Cloning the Repository
First, clone the repository to your local machine:
git clone https://gitlab.cci.drexel.edu/data-guardian/senior-project.git
cd senior-project
Setting up the Backend
-
Open the Backend in PyCharm:
- Open PyCharm and select
Open
. - Navigate to the
backend
directory within the cloned repository and open it.
- Open PyCharm and select
-
Configure Python Interpreter:
- In PyCharm, go to
File
>Settings
>Project: backend
>Python Interpreter
. - Create a new virtual environment or select an existing one.
- In PyCharm, go to
-
Install Dependencies:
- In PyCharm's terminal, run:
pip install -r requirements.txt
- In PyCharm's terminal, run:
-
Run Migrations:
- In the terminal, execute:
python manage.py migrate
- In the terminal, execute:
-
Start the Django Development Server:
- Run:
python manage.py runserver
- Run:
Setting up the Frontend
-
Open the Frontend in PyCharm in a New Window:
- Use
File
>Open
in a new window and select thefrontend
directory.
- Use
-
Install Node Modules:
- In the terminal within PyCharm, run:
npm install
- Also run:
npm install zxcvbn
- In the terminal within PyCharm, run:
-
Start the React Development Server:
- Execute:
npm start
- Execute:
Accessing the Application
- The backend API will be available at
http://localhost:8000
. - The frontend will be available at
http://localhost:3000
.
Built With
- Django - The web framework used for the backend
- React - The web framework used for the frontend
Setting up GitLab and Git in PyCharm
To work with this project in PyCharm and synchronize it with the GitLab repository, follow these steps:
Cloning the Repository in PyCharm
-
Open PyCharm and Clone the Repository:
- Go to
File
>New
>Project from Version Control
. - In the URL field, enter
https://gitlab.cci.drexel.edu/data-guardian/senior-project.git
. - Choose the directory where you want to clone the project and click
Clone
.
- Go to
Setting Up Git
-
Check Git Configuration:
- Go to
File
>Settings
>Version Control
>Git
. - Ensure Git is correctly installed and configured.
- Go to
Working with Git
-
Commit Changes:
- Make changes to your files in the PyCharm editor.
- Open the
Commit
tool window (Alt + 0). - Review your changes, stage them, write a commit message, and commit.
-
Pull and Push Changes:
- To pull changes from GitLab, go to
VCS
>Git
>Pull
. - To push changes to GitLab, go to
VCS
>Git
>Push
.
- To pull changes from GitLab, go to
Working with GitLab
-
Issue Tracking and Project Management:
- Use GitLab's issue tracking and project management features to collaborate on tasks.
- Access these features through your project's GitLab page.
-
Merge Requests:
- Create merge requests in GitLab to propose and review changes.
- Merge requests can be managed through the GitLab web interface.
Remember to regularly pull changes from the remote repository to keep your local project up to date and to reduce merge conflicts.