2021-04-28 16:33:58 +08:00
2020-12-22 11:09:55 +08:00
2021-04-26 15:51:16 +08:00
2021-04-26 15:51:16 +08:00
2021-04-28 11:57:37 +08:00
2021-04-28 15:37:10 +08:00
2021-04-26 15:51:16 +08:00
2021-04-26 15:51:16 +08:00
2021-04-26 15:51:16 +08:00
2021-04-28 16:33:58 +08:00
2021-04-26 15:51:16 +08:00
2021-04-26 15:51:16 +08:00
2021-04-28 15:37:10 +08:00
2021-04-27 18:04:59 +08:00
2021-04-26 15:51:16 +08:00
2021-04-27 11:08:55 +08:00
2021-04-26 15:51:16 +08:00
2021-04-28 15:10:13 +08:00
2021-04-28 15:10:13 +08:00
2021-04-26 15:51:16 +08:00
2021-04-26 15:51:16 +08:00
2021-04-26 15:51:16 +08:00

APP Demo

Since there are many Web apps developed, a common development template is put together here.

New app

1、You need copy appdemo to your GOPATH and rename:

$ git clone git@github.com:deepzz0/appdemo.git <app name>

3、Enter your app, run:

$ cd <app name>
$ make _app

3、Push the code to new repo:

$ git add .
$ git commit -m "init repo"
$ git remote add origin <your repo>
$ git push -u origin master

4、make demo you can start your web app.

Development

Step1

Understand the directory.

.
├── build             # Packaging and CI.
├── cmd               # Main applications for this app.
├── conf              # Static configuration file.
├── docs              # Design and user documents.
├── pkg               # Library code that's ok to use by external applications.
├── scripts           # Scripts to perform various build, install, analysis, etc operations.
├── website           # APP's website data.
├── CHANGELOG.md      # Record version change.
├── LICENSE           # Open source license
├── Makefile          # Makefile: call scripts
├── README.md         # Read me docs.
└── go.mod            # Go mod file.

Step2

Code in pkg and cmd or website.

Description
a fast blog system in golang
Readme MIT 16 MiB
Languages
Go 51.9%
HTML 46.5%
Shell 0.9%
Dockerfile 0.5%
Makefile 0.2%