Commit Graph

18 Commits (a5df36eff229f948e60da917aef16c65f8488d16)

Author SHA1 Message Date
Athurg Gooth 5ebf920a61
chore: stop process on build error ()
* Move migration and seed code into driver

* Stop process on build error
boojack 18fb02a1ec
chore: update swag docs ()
* chore: update swag docs

* chore: update
Lincoln Nogueira 3f82729e9f
chore: update build scripts ()
update developer build scripts, bringing
feature parity between platforms.
boojack 35f2d399e2
chore: update api v1 docs ()
* chore: update apiv1 docs

* chore: update
Lincoln Nogueira 4491c75135
feat: add SwaggerUI and v1 API docs ()
* - Refactor several API routes from anonymous functions to regular definitions. Required to add parseable documentation comments.

- Add API documentation comments using Swag Declarative Comments Format

- Add echo-swagger to serve Swagger-UI at /api/index.html

- Fix error response from extraneous parameter resourceId to relatedMemoId in DELETE("/memo/:memoId/relation/:relatedMemoId/type/:relationType")

- Add an auto-generated ./docs/api/v1.md for quick reference on repo (generated by swagger-markdown)

- Add auxiliary scripts to generate docs.go and swagger.yaml

* fix: golangci-lint errors

* fix: go fmt flag in swag scripts
boojack 43819b021e
chore: add demo banner ()
Lincoln Nogueira 5340008ad7
feat: improve Windows support ()
* Add preliminar Windows support for both
development and production environments.

Default profile.Data will be set to "C:\ProgramData\memos" on Windows.
Folder will be created if it does not exist, as this behavior is
expected for Windows applications.

System service installation can be achieved with third-party tools,
explained in docs/windows-service.md.

Not sure if it's worth using https://github.com/kardianos/service
to make service support built-in.

This could be a nice addition alongside  (add Windows artifacts)

* feat: improve Windows support

- Fix local file storage path handling on Windows

- Improve Windows dev script
Lincoln Nogueira 3b76c6792c
feat: add preliminar Windows support ()
Add preliminar Windows support for both
development and production environments.

Default profile.Data will be set to "C:\ProgramData\memos" on Windows.
Folder will be created if it does not exist, as this behavior is
expected for Windows applications.

System service installation can be achieved with third-party tools,
explained in docs/windows-service.md.

Not sure if it's worth using https://github.com/kardianos/service
to make service support built-in.

This could be a nice addition alongside  (add Windows artifacts)
boojack 1517688076
chore: update code structure ()
* chore: update code structure

* chore: update
boojack 1ace332152
feat: graceful shutdown server ()
steven 62657f7f4e chore: update build folder
Steven 84a3548232 chore: update scripts
boojack dc436490f8 chore: update `build.sh`
boojack 7c94db0ca0 chore: use flags instead of env vars
email d661134b03 refactor: backend
steven f70ad6891d add dockerfile
steven a08ad0ebab update restful api
LeeShuang 2f72bfa946 init project