/todo

Todo rest api

Primary LanguagePython

Todo Rest API

Prerequisites

  1. Git
  2. Python version 3.8 or later
  3. pip or pip3

Build locally

Installing requirements

  1. Clone this repo

    git clone https://github.com/kill-your-soul/todo.git
  2. Create virtual environment

    • For Windows:

      python -m venv .venv
    • For Linux, MacOS:

      python3 -m venv .venv
  3. Activate virtual environment

    • For Windows:

      .\.venv\Scripts\activate
    • For Linux, MacOS:

      source ./.venv/bin/activate
  4. Install requirements

    • For Windows:

      pip install -r requirements.txt
    • For Linux, MacOS:

      pip3 install -r requirements.txt
  5. Setting environment variables

    • For Windows:

      • Powershell:

        $env:SECRET_KEY="SECRET_KEY_TO_YOUR_DJANGO_APP";
      • cmd:

        set SECRET_KEY=SECRET_KEY_TO_YOUR_DJANGO_APP
    • For Linux, MacOS:

      • Bash:

        export SECRET_KEY="SECRET_KEY_TO_YOUR_DJANGO_APP"
  6. Run Django server

    • For Windows:

      python .\manage.py runserver
    • For Linux, MacOS:

      python3 manage.py runserver