Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gogf/focus-single
Single repo demo project using GoFrame.
https://github.com/gogf/focus-single
api dao demo dto entity goframe golang orm project server structure
Last synced: 18 days ago
JSON representation
Single repo demo project using GoFrame.
- Host: GitHub
- URL: https://github.com/gogf/focus-single
- Owner: gogf
- License: lgpl-3.0
- Created: 2021-07-12T11:51:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-01T10:14:47.000Z (4 months ago)
- Last Synced: 2024-11-10T07:39:57.327Z (about 1 month ago)
- Topics: api, dao, demo, dto, entity, goframe, golang, orm, project, server, structure
- Language: Go
- Homepage:
- Size: 6.04 MB
- Stars: 157
- Watchers: 5
- Forks: 62
- Open Issues: 13
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
- awesome-gf - focus-single - (Official) GoFrame开源社区项目,可作为一个完整项目示例。 (StandAlone Projects)
README
# 1. Focus Single
A `MVC` project using `GoFrame`.
# 2. Quick start
## 2.1 If you use SQLite
1. Download the source code
```
git clone https://github.com/gogf/focus-single.git
cd focus-single
```2. Run Focus Single
```
cp manifest/config/config.example.yaml manifest/config/config.yaml
gf run main.go
```3. Enjoy it
then open http://127.0.0.1:8199/ and enjoy it.```
user: goframe
password: 123456
```## 2.2 If you use MySQL
1. Download the source code
```
git clone https://github.com/gogf/focus-single.git
cd focus-single
```2. Update config
copy manifest/config/config.yaml and edit database.default config
```
cp manifest/config/config.example.yaml manifest/config/config.yaml
```3. Import Db
Import manifest/document/focus.sql to your Mysql4. Run Focus Single And Enjoy
```
gf run main.go
```then open http://127.0.0.1:8199/ and enjoy it.
```
user: goframe
password: 123456
```