Skip to content

Commit d7de150

Browse files
committed
added frontend and caddy
1 parent 4679ab5 commit d7de150

35 files changed

+221
-64
lines changed

create_fastapi_project/templates/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ def install_template(root: str, template: ITemplate, app_name: str):
3535

3636
# Add pyproject.toml file and installl packages
3737
app_folder: str = "app"
38-
if template == ITemplate.full:
39-
app_folder = "backend/app"
38+
if template == ITemplate.full or template == ITemplate.langchain_basic:
39+
# TODO: CHECK PATHS IN MACOS AND WINDOWS | (os.path.join)
40+
app_folder = "backend\\app"
4041

4142
poetry_path = os.path.join(root, app_folder)
4243
has_pyproject = add_configuration_to_pyproject(poetry_path)

create_fastapi_project/templates/basic/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This is a FastAPI project initialized using [`create-fastapi-project`](https://g
66

77
The commands in this documentation can be customized on the **Makefile**. It can be started with and without docker.
88

9+
This project uses poetry, if you don't have it installed, you can the follow the instruction in [Poetry Documentation](https://python-poetry.org/docs/#installation).
910

1011
- Run the server (Recommended using docker):
1112

@@ -20,7 +21,6 @@ make run-dev
2021
make run-prod
2122
```
2223

23-
2424
- Run the server without docker:
2525

2626
First, make sure you have all packages installed:
@@ -68,5 +68,4 @@ Running `pip install create-fastapi-project@latest` (with no arguments) launches
6868

6969
By choosing `create-fastapi-project`, you streamline your initial project setup, leverage reliable patterns, and enjoy the convenience of a tool tailored for FastAPI development.
7070

71-
7271
We love ❤️ [FastAPI](https://fastapi.tiangolo.com/) and its ecosystem. You can check out the [create-fastapi-project GitHub repository](https://github.com/allient/create-fastapi-project) - your feedback and contributions are welcome!
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
PROJECT_NAME=
22
OPENAI_API_KEY=
33
UNSPLASH_API_KEY=
4-
SERP_API_KEY=
4+
SERP_API_KEY=
5+
6+
#############################################
7+
# Caddy variables
8+
#############################################
9+
EXT_ENDPOINT1=127.0.0.1
10+
LOCAL_1=localhost
11+
LOCAL_2=127.0.0.1

create_fastapi_project/templates/langchain_basic/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ This is a FastAPI project initialized using [`create-fastapi-project`](https://g
2929

3030
The commands in this documentation can be customized on the **Makefile**. It can be started with and without docker.
3131

32+
This project uses poetry, if you don't have it installed, you can the follow the instruction in [Poetry Documentation](https://python-poetry.org/docs/#installation).
33+
3234
- Run the server (Recommended using docker):
3335

3436
```bash

0 commit comments

Comments
 (0)