2024-06-12 12:26:17 +05:30
2024-02-26 13:28:32 +05:30
2024-02-26 13:28:32 +05:30
2024-06-12 12:26:17 +05:30

Installation Guide for Digest Backend

Follow these steps to set up the Digest Backend project on your local machine.

Cloning the Repository

  1. Clone the repository:
    $ git clone https://github.com/WDI-Ideas/digest_backend.git
    $ cd digest_backend
    

Setting Up the Environment

  1. Install virtualenv if you haven't already:

    $ pip install virtualenv
    
  2. Create a virtual environment:

    $ virtualenv venv
    
  3. Activate the virtual environment:

    Windows:

    venv\Scripts\activate
    

    Mac/Linux:

    source venv/bin/activate
    

Installing Dependencies

  1. Install the required dependencies using pip:
    $ pip install -r requirements.txt
    

Configuring the Environment Variables

  1. 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

  1. Run the following command to create the database tables:
    $ python manage.py migrate
    

Pre-Populating the Database

  1. Run the following command to pre-populate the database with custom command:
    $ python manage.py load_iam_fixture
    

Running the Server

  1. 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
No description provided
Readme 6.8 MiB
Languages
CSS 47.1%
JavaScript 33.9%
HTML 11.1%
Python 7.9%