iamsid0908 / katalisflask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

  1. If you don’t have Python installed, install it from here.

  2. Clone this repository.

  3. Navigate into the project directory:

    $ cd Katalis-Backend
  4. Create a new virtual environment:

    $ python -m venv venv
    $ . venv/bin/activate
  5. Install the requirements:

    $ pip install -r requirements.txt
  6. Make a copy of the example environment variables file:

    $ cp .env.example .env
  7. Add your API key to the newly created .env file.

  8. Run the app:

    $ flask run
    $ flask run -h localhost -p 7000
  9. Check if system running by pasting url to chrome

    $ http://127.0.0.1:5000/health

Connecting database

  1. Install MySQL server on your local computer
  2. Add db connetion url to SQLALCHEMY_DATABASE_URI in .env file
  3. Uncommment create table API
  4. Run create Table API with Postman

Postman Collection URL

About


Languages

Language:Python 100.0%