Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Backend source code for evolve on click tool.

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
LICENSE.md
Notifications You must be signed in to change notification settings

Evolutionary-Algorithms-On-Click/evolve_backend_python

Repository files navigation

How to setup locally?

  1. Clone the repository
git clone https://github.com/Evolutionary-Algorithms-On-Click/evolve-backend-python
  1. Go to the backend directory

  2. Create a virtual environment

python -m venv venv
  1. Activate the virtual environment

macOS / Linux
source venv/bin/activate

windows

.\venv\Scripts\activate 

Note

To deactivate the virtual environment run

deactivate
  1. Install the dependencies

macOS and Linux

pip install -r requirements.txt

Windows

Important

  • uvloop library is not needed in Windows, It can be removed from requirements.txt.
  • pygraphviz has some problems with windows so, Refer for instructions.
  1. Install Visual C/C++ from here.
  2. Download and install Graphviz for Windows 10 (64-bit).
  3. Install PyGraphviz via
python -m pip install --config-settings="--global-option=build_ext" --config-settings="--global-option=-IC:\Program Files\Graphviz\include" --config-settings="--global-option=-LC:\Program Files\Graphviz\lib" pygraphviz

Update the requirements

pip freeze > requirements.txt
  1. Start the FastAPI app
uvicorn main:app --reload
  1. To run in production.

In Windows.

uvicorn main:app --host 0.0.0.0 --port 8000 --workers 4

In Linux.

gunicorn main:app -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000 -w 4

About

Backend source code for evolve on click tool.

Topics

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •