Skip to content

Commit 06f3e19

Browse files
authored
Create setup.md
Created
1 parent 9d53c1a commit 06f3e19

File tree

1 file changed

+107
-0
lines changed

1 file changed

+107
-0
lines changed

setup.md

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Setup Guide for AGO Web Application
2+
3+
## Prerequisites
4+
5+
Before setting up the AGO web application, ensure you have the following installed on your system:
6+
7+
1. **Python**: Version 3.8 or later. [Download Python](https://www.python.org/downloads/)
8+
2. **pip**: Python package manager (comes with Python installation).
9+
3. **Virtual Environment Tool**: `venv` or `virtualenv`.
10+
4. **Git**: For cloning the repository. [Download Git](https://git-scm.com/)
11+
5. **A Web Browser**: To view the application (e.g., Chrome, Firefox).
12+
13+
## Setup Instructions
14+
15+
Follow these steps to set up the AGO web application on your local machine:
16+
17+
### Step 1: Clone the Repository
18+
19+
```bash
20+
git clone https://github.com/aimtyaem/AGO.git
21+
cd AGO
22+
```
23+
24+
### Step 2: Create and Activate a Virtual Environment
25+
26+
#### On Windows:
27+
```bash
28+
python -m venv venv
29+
venv\Scripts\activate
30+
```
31+
32+
#### On macOS/Linux:
33+
```bash
34+
python3 -m venv venv
35+
source venv/bin/activate
36+
```
37+
38+
### Step 3: Install Dependencies
39+
40+
Install the required Python packages using the `requirements.txt` file:
41+
42+
```bash
43+
pip install -r requirements.txt
44+
```
45+
46+
### Step 4: Set Up Environment Variables
47+
48+
Create a `.env` file in the project root directory and add the necessary configuration variables. Below is an example:
49+
50+
```
51+
DEBUG=True
52+
SECRET_KEY=your_secret_key_here
53+
DATABASE_URL=sqlite:///db.sqlite3
54+
```
55+
56+
Make sure to replace `your_secret_key_here` with a secure key.
57+
58+
### Step 5: Initialize the Database
59+
60+
Run the following commands to apply migrations and set up the database:
61+
62+
```bash
63+
python manage.py makemigrations
64+
python manage.py migrate
65+
```
66+
67+
### Step 6: Start the Development Server
68+
69+
Start the web application locally using the following command:
70+
71+
```bash
72+
python manage.py runserver
73+
```
74+
75+
You can now access the application in your web browser at `http://127.0.0.1:8000`.
76+
77+
---
78+
79+
## Optional Steps
80+
81+
### Installing Additional Frontend Dependencies
82+
83+
If the project includes HTML/CSS/JavaScript dependencies, you might need `npm` or `yarn`. Check if there is a `package.json` file and run:
84+
85+
```bash
86+
npm install
87+
```
88+
89+
### Running Tests
90+
91+
To ensure everything is working fine, you can run the test suite:
92+
93+
```bash
94+
python manage.py test
95+
```
96+
97+
---
98+
99+
## Troubleshooting
100+
101+
- Ensure that all dependencies are installed and up-to-date.
102+
- If you encounter issues related to database migrations, delete the `db.sqlite3` file and the `migrations` folder, then repeat Step 5.
103+
- For additional help, refer to the project's [documentation](#) or open an issue in the repository.
104+
105+
---
106+
107+
This file can be customized further based on the exact setup requirements of the AGO web application. Let me know if you need additional details or modifications!

0 commit comments

Comments
 (0)