Skip to content

Commit 07e8617

Browse files
authored
Merge pull request #3 from bnbong/template/basic-templates
version 1.0.0
2 parents 06458fc + 07fa5ee commit 07e8617

File tree

171 files changed

+4725
-1344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+4725
-1344
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ bash scripts/lint.sh
6767
```
6868

6969

70-
### Making commits
70+
### Making PRs
7171

7272
Use these tags in PR title:
7373

README.md

Lines changed: 50 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,16 @@ $ pip install FastAPI-fastkit
3939

4040
### Create a new FastAPI project workspace environment immediately
4141

42-
Create a new FastAPI project workspace with:
42+
You can now start new FastAPI project really fast with FastAPI-fastkit!
43+
44+
Create a new FastAPI project workspace immediately with:
4345

4446
```console
45-
$ fastkit startproject
46-
Enter project name: <your-project-name>
47+
$ fastkit init
48+
Enter the project name: <your-project-name>
49+
Enter the author name: <your-name>
50+
Enter the author email: <your-email>
51+
Enter the project description: <your-project-description>
4752

4853
Available Stacks and Dependencies:
4954
MINIMAL Stack
@@ -90,24 +95,49 @@ Installing dependencies...
9095

9196
---> 100%
9297

93-
╭─────────────────────────────────────────────────────────────────── Success ────────────────────────────────────────────────────────────────────╮
94-
│ ✨ Project '<your-project-name>' has been created successfully! │
95-
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
96-
╭───────────────────────────────────────────────────────────────────── Info ─────────────────────────────────────────────────────────────────────╮
97-
│ ℹ To activate the virtual environment, run: │
98-
│ │
99-
│ source /<new-venv-path>/venv/bin/activate │
100-
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
98+
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Success ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
99+
│ ✨ Dependencies installed successfully │
100+
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
101+
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Success ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
102+
│ ✨ FastAPI project '<your-project-name>' has been created successfully and saved to '<your-project-path>'! │
103+
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
104+
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
105+
│ ℹ To start your project, run 'fastkit runserver' at newly created FastAPI project directory │
106+
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
101107
```
102108

103109
This command will create a new FastAPI project workspace environment with Python virtual environment.
104110

105-
### Place a structured FastAPI project immediately
111+
### Add a new route to the FastAPI project
112+
113+
`FastAPI-fastkit` makes it easy to expand your FastAPI project.
114+
115+
Add a new route endpoint to your FastAPI project with:
116+
117+
```console
118+
$ fastkit addroute <your-project-name> <new-route-name>
119+
120+
---> 100%
121+
122+
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
123+
│ ℹ Updated main.py to include the API router │
124+
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
125+
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Success ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
126+
│ ✨ Successfully added new route '<new-route-name>' to project '<your-project-name>'. │
127+
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
128+
```
129+
130+
131+
### Place a structured FastAPI demo project immediately
106132

107-
Place a structured FastAPI project immediately with:
133+
You can also start with a structured FastAPI demo project.
134+
135+
Demo projects are consist of various tech stacks with simple item CRUD endpoints implemented.
136+
137+
Place a structured FastAPI demo project immediately with:
108138

109139
```console
110-
$ fastkit startup
140+
$ fastkit startdemo
111141
Enter the project name: <your-project-name>
112142
Enter the author name: <your-name>
113143
Enter the author email: <your-email>
@@ -137,6 +167,12 @@ FastAPI template project will deploy at '<your-project-path>'
137167
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
138168
```
139169

170+
To view the list of available FastAPI demos, check with:
171+
172+
```console
173+
$ fastkit list-templates
174+
```
175+
140176
## Significance of FastAPI-fastkit
141177

142178
FastAPI-fastkit aims to provide a fast and easy-to-use starter kit for new users of Python and FastAPI.

src/fastapi_fastkit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.1.2"
1+
__version__ = "1.0.0"
22

33
import os
44

0 commit comments

Comments
 (0)