Skip to content

Repository files navigation

Stock Level Estimation / Backend App

I. Installation

Installing requirements

pip install -r requirements.txt

Migrate database

python manage.py migrate

Run server:

python manage.py runserver

II. Machine Learning Engine:

Before running the server, make sure to create a .env file containing:

OPENAI_API_KEY=<API key>

With the appropriate OpenAI API key. The key must allow the usage of the gpt-4.1-mini model.

III. Deployment:

To deploy the backend, first enter the settings.py and changes DEBUG=False.

Ideally, the backend should be moved to a production-ready WSGI or ASGI server. However, if you lack a server, simply running the server normally should still work. Other deployment requirements can be found in the django documentation.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages