Skip to content

Backend

Prerequisites

Backend Setup

  • Download the source code from the Dester backend repo from GitHub as a zip or with:
    git clone https://github.com/DesterLib/Backend.git
    
  • Open a terminal at the root of the the downloaded folder
  • Install the pip dependencies with
    pip3 install -r requirements.txt
    

    At this point, the server setup is done, when you run the server, you could see the server responding it's working fine.

Buiding the frontend

To have a UI built into the server, build the frontend and move the build folder into the server's root. You can either use out script or refer to the guide in building the frontend manually

Using the build.sh script

You may use the build.sh script provided with the Backend repo in the scripts/ directory to build the frontend without much effort.

For that, Fire up your terminal in the backend folder and run:

bash scripts/build.sh

⚠️ Note that this script only works on Linux based distos and certain in *windows having WSL support.

Using the frontend guide

You may see the frontend guide for more info.

And with that done, you need to run the webapp.

Running the backend

Make sure your terminal is fired up in the root directory of the backend folder.

RUN:

uvicorn main:app --host 0.0.0.0 --port 35500

Encountered any errors? see the Common errors section. 🙌


Last update: July 24, 2022 11:53:04
Created: July 24, 2022 11:53:04