You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The backend code in this repository originated from the [FastAPI full stack template](https://github.com/fastapi/full-stack-fastapi-template) and includes AI components that make this AI engineer template unique.
8
+
https://ai-engineer-template.vercel.app
14
9
15
-
To fast-track the MVP building process, which is crucial for most AI products, we have chosen a simple tech stack. This allows people to focus more on iterating through product features rather than on DevOps from the outset.
10
+
### Tech stack 🛠️
16
11
17
-

12
+
The backend code in this repository originated from the [FastAPI full stack template](https://github.com/fastapi/full-stack-fastapi-template) plus additional AI components that make this AI engineer template unique.
2. Follow the original [README]('README-original.md') to docker compose and set up Postgres, reverse proxy and Fastapi server. You can leave the original React fronend running if you'd like. Or, you can just comment out the frontend bit in the docker compose file.
25
-
3. Run nextjs app in local
26
-
```bash
27
-
cd frontend
28
-
```
29
-
```bash
30
-
npm install
31
-
```
32
-
```bash
33
-
npm run dev
34
-
```
14
+
To fast-track MVP building process, which is crucial for most AI products, we have chosen a simple tech stack. This allows people to focus more on iterating through product features rather than on DevOps from the outset.
35
15
36
-
Note: This is a fork from the original [Full Stack FastAPI Template](https://github.com/tiangolo/full-stack-fastapi-template"Full Stack FastAPI Template"). Instead of the original Reactjs frontend, we used Nextjs14 in this repository.
16
+

37
17
38
-
Here are the reasons why we wanted to build with Nextjs (a full stack framework built on top of React) over React.
39
-
- Dependencies reduction
40
-
A barebone Reactjs application would require installation of dependency packages to achieve multi-page routing, managing API requests, caching etc. There are a number of solutions out there, e.g. in the original repo, @tanstack/react-router is used for routing, @tanstack/react-query + axios are used for managing API requests and caching.
41
-
In a Nextjs application, all these functions are built in without the need for third-party libraries. Also, Nextjs14 (app router) uses file-based routing which means the routing is automatically done via the folder structure.
18
+
### How to run in local 🏃♂️
42
19
43
-
- Server side rendering
44
-
Data fetching and mutation in a Nextjs application is mostly dealt in server side while client side data fetching is also allowed. This offers advantages to get away with 'useEffect' and other cumbersome boiler plate codes in order to do data fetching at client side. Server side rendering also offers performance benefit.
20
+
Refer to [development](development.md)
45
21
46
-
- Popularity
47
-
Nextjs is getting more and more popular. There are good amount of frontend projects and Youtube tutorials based on Nextjs, which are beginner friendly.
This is as cleanest as it can possibly get, in my personal opinion, for handling frontend API requests.
63
+
64
+
This is is a very simple and clean way, in my personal opinion, to handle frontend API requests.
79
65
80
66
### UI library
67
+
81
68
We use [Shadcn](https://ui.shadcn.com/ "Shadcn"). It's light-weight, all the UI components are imported as plain javascript code for transparency. So, you can modify to suit your need.
82
69
83
70
### Deployment
84
-
Docker compose is up to date now with nextjs frontend. You can just deploy through docker compose on a remote server.
85
-
A friendly warning is this code was recently written (in3-4 days), so there are still bugs. All pull requests are welcome!
86
71
87
-
### Roadmap
88
-
- Tidy up the error handling bit
89
-
- Add task queue for long last jobs (Celery + Redis)
90
-
-AI chat interface
72
+
This is a 100% serverless template! No need to manage a VM or Kubernates yourself. And it will be completely free to start with. Frontend, backend and database code is deployed to three serverless hosting separately with individual scalability.<br>
73
+
Frontend --> Vercel<br>
74
+
Backend -->GCP Cloud Run<br>
75
+
Database -->Supabase (Postgres)<br>
76
+
**You don't need to clickOps the deployment. The whole deployment process is set up via github actions. Whenever there is a merge to the main branch, a CD will be triggered.**
91
77
92
-
### Backend
93
-
We did not change the backend code, all the other details remain valid from the original [README](README-original.md)
78
+
Refer to the guide [here](deployment.md)
94
79
95
80
### EuclideanAI
96
-
Who the hell is EuclideanAI? we are a boutique AI& Data consultancy who provide purpose-built AI, data, machine learning solutions for our clients. [Feel free to reach out!](https://euclideanai.com/contactus/)
81
+
82
+
Who the hell is EuclideanAI? we are a boutique Data&AI consultancy who provide purpose-built AI, data, machine learning solutions for our clients. [Feel free to reach out!](https://euclideanai.com/contactus/)
97
83
98
84
### License
99
85
100
-
The Nextjs FastAPI Template is licensed under the terms of the MIT license.
86
+
The AI Engineer Template is licensed under the terms of the MIT license.
0 commit comments