Reviewed-on: #3
Installation Guide for Digest Backend
Follow these steps to set up the Digest Backend project on your local machine.
Cloning the Repository
- Clone the repository:
$ git clone https://github.com/WDI-Ideas/digest_backend.git $ cd digest_backend
Setting Up the Environment
-
Install
virtualenvif you haven't already:$ pip install virtualenv -
Create a virtual environment:
$ virtualenv venv -
Activate the virtual environment:
Windows:
venv\Scripts\activateMac/Linux:
source venv/bin/activate
Installing Dependencies
- Install the required dependencies using pip:
$ pip install -r requirements.txt
Configuring the Environment Variables
- Copy and rename the env.example file to .env and set all the required variables. Ensure there are no spaces around the =:
$ cp env.example .env
Migrating the Database
- Run the following command to create the database tables:
$ python manage.py migrate
Pre-Populating the Database
- Run the following command to pre-populate the database with custom command:
$ python manage.py load_iam_fixture
Running the Server
- Run the following command to start the server:
$ python manage.py runserver
Now, your server should be up and running. Access it in your browser at http://127.0.0.1:8000/.
Note :
- Make sure you have Python and pip installed on your system.
- If you encounter any issues, ensure that all dependencies are properly installed and the environment variables are correctly configured.
- Always activate the virtual environment before running any Python or Django commands.
Description
Languages
CSS
47.1%
JavaScript
33.9%
HTML
11.1%
Python
7.9%