Skip to content

9oormthon9th/BE2

Repository files navigation

걸엉가게

This repository is for the backend of the project '걸엉가게'.

Installation

Note

This project uses Python 3.6 as D2Hub had a Python 3.6 image available back then.
If you don't have Python 3.6 installed, you can use pyenv to install it.

  1. Clone the git repository:

    git clone https://github.com/9oormthon9th/BE2.git
    cd BE2
  2. Install Python 3.6 and select it:

    pyenv install 3.6.15
    pyenv shell 3.6.15
  3. Create a virtual environment for the project:

    As python 3.6 is selected, python3 and pip3 commands will use python 3.6

    pip3 install virtualenv
    python3 -m virtualenv my_env
    # => created virtual environment CPython3.6.15.final.0-64 in 271ms
  4. Activate the virtual environment and install dependencies:

    source my_env/bin/activate
    # In my_env environment, do following
    pip3 install -r requirements.txt

Usage

  1. Set your OpenAI API key in the ./mnt/.secret file.

    You can rename ./mnt/.secret.template to ./mnt/.secret and set your OpenAI API key in it.

  2. Run the server:

    (my_env) $ flask run
  3. Test the server at http://localhost:5000/api/ready

Endpoints

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors