Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 173f669

Browse files
committed
docs: how to run, to do list and api notes
1 parent 77448d4 commit 173f669

File tree

6 files changed

+36
-112
lines changed

6 files changed

+36
-112
lines changed

api.note.txt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
** TODO
2+
[] Fix database migration
3+
[] Fix run by container
4+
5+
** Code Statue
16
SUCCESS:
27
1. status code created
38
2. status code 200

chatbot.service

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[Unit]
2+
Description=chatbot service
3+
4+
[Service]
5+
User=root
6+
WorkingDirectory=/home/azureuser/app/chatbot-api
7+
ExecStart=/home/azureuser/app/chatbot-api/venv/bin/python3 /home/azureuser/app/chatbot-api/app.py
8+
# optional items below
9+
Restart=always
10+
RestartSec=2
11+
# replace /home/user/.virtualenv/bin/python with your virtualenv and main.py with your script
12+
13+
[Install]
14+
WantedBy=multi-user.target

how-to-run.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
- clone the project
2+
3+
- setup the .env file
4+
5+
- run postgres container
6+
7+
- create database name chatbot
8+
9+
- create virtual environment
10+
11+
- install dependencies
12+
13+
- run model.download.py
14+
15+
- run embed.init.py
16+
17+
- apply database migration

migration_test/README

-1
This file was deleted.

migration_test/env.py

-85
This file was deleted.

migration_test/script.py.mako

-26
This file was deleted.

0 commit comments

Comments
 (0)