Commit 4eaf8c4f authored by adam.fisher1's avatar adam.fisher1

Update README.md

parent 37b123f8
...@@ -31,34 +31,39 @@ To ensure you're working with the correct version of Python and dependencies, se ...@@ -31,34 +31,39 @@ To ensure you're working with the correct version of Python and dependencies, se
*python -m venv venv *python -m venv venv
source venv/bin/activate* source venv/bin/activate*
3. Install Python Dependencies 3. Install Python Dependencies
Once the virtual environment is activated, install the required Python packages: Once the virtual environment is activated, install the required Python packages:
*pip install -r requirements.txt* *pip install -r requirements.txt*
4. Install Frontend Dependencies 4. Install Frontend Dependencies
This project uses JavaScript for frontend development. To install the necessary frontend dependencies: This project uses JavaScript for frontend development. To install the necessary frontend dependencies:
*npm install* *npm install*
***Building and Deploying the Project*** ***Building and Deploying the Project***
1. Apply Migrations 1. Apply Migrations
Ensure the database is up to date with the latest schema: Ensure the database is up to date with the latest schema:
*python manage.py migrate* *python manage.py migrate*
2. Collect Static Files 2. Collect Static Files
Run this command to gather all the static files (CSS, JS, images) into the appropriate folder: Run this command to gather all the static files (CSS, JS, images) into the appropriate folder:
*python manage.py collectstatic* *python manage.py collectstatic*
3. Start the Development Server 3. Start the Development Server
You can start the Django development server with the following command: You can start the Django development server with the following command:
*python manage.py runserver* *python manage.py runserver*
4. Deploy to Production 4. Deploy to Production
For production deployment, follow your specific cloud deployment instructions (e.g., on Azure). Here is a generic overview of the steps: For production deployment, follow your specific cloud deployment instructions (e.g., on Azure). Here is a generic overview of the steps:
1. Set DEBUG = False in your settings.py file. 1. Set DEBUG = False in your settings.py file.
2. Configure a production-ready database (e.g., PostgreSQL or MySQL). 2. Configure a production-ready database (e.g., PostgreSQL or MySQL).
3. Set up a WSGI server such as Gunicorn to run the application. 3. Set up a WSGI server such as Gunicorn to run the application.
4. Use a reverse proxy like Nginx to handle HTTP requests. 4. Use a reverse proxy like Nginx to handle HTTP requests.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment