Skip to content

Fahnalan/ML

Repository files navigation

Stockie ML

Table of Contents

Project setup (Local Development)

For first time setup of the project, follow the steps below:

Local development

Prerequisites

  • python 3.12+
  • pip (please upgrade to the latest version)
    python -m pip install --upgrade pip

Installation

  1. Clone the repo

  2. Create a virtual environment

    python -m venv venv
  3. Activate the virtual environment

    source venv/bin/activate
  4. Install the libraries

    pip install -r requirements.txt

    For any libraries updates, please run the following command

    pip freeze > requirements.txt
  5. Create a .env file in the root directory and add the environment variables (please ask for the variables from the team)

You're all set! 🚀 To start the development server, follow the next section.

Running the server

Local development

  1. Activate the virtual environment

    source venv/bin/activate
  2. Run the server

    uvicorn app.main:app --port 8001 --reload

    or run with the main file (no real-time reload)

    python -m app.main
  3. To access the API documentation, visit

  4. To terminate the server, press Ctrl + C in the terminal

  5. To deactivate the virtual environment, run

    deactivate

Contributing

Formatting

  • please format the all codes in app folder by running command below before committing
    black app/
    isort app/
    flake8 app/

Resources

Logging

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •