Project grapefruit is a web backend of Three-Visits
- RPC.
- TCP.
- Websocket.
- EventSource.
- Http.
- Chat-GPT
- Language: [golang]
- Databases: [Mongo,Redis,ElasticSearch]
- Middleware: [JWT,Swagger,GORM]
- Other Technologies: [Sonic ,Spoor]
- The project follows Domain-Driven Design (DDD) as the architectural design concept, dividing the business domain into different subdomains and implementing concepts like domain models, aggregates, entities, value objects, and domain services within each subdomain.
-[adapter 适配器 -[app 应用biz -[domain 值对象
-Dockerfile 构建容器的时候会用到 -buildspec.yml aws 构建时会用到的
- The project utilizes Swagger as the API documentation tool, providing detailed interface documentation along with sample requests/responses.
- RPC (Remote Procedure Call) is used to facilitate communication and service invocation between modules.
- TCP protocol is employed for specific functionalities or communication with other systems.
- WebSocket is implemented to enable real-time bidirectional communication, such as chat rooms or real-time data streaming.
- EventSource (Server-Sent Events) is used to push server-generated events to clients.
- Databases: The project utilizes the following databases for data storage:
- Redis: Used for caching or implementing specific functionalities.
- Elasticsearch (ES): Employed for full-text search and real-time analytics.
- MongoDB: Utilized for storing and querying unstructured data or complex data models.
launch postgresql create table and database
execute ./docs/script.sql
run
go run main.go
- phuhao00.