https://github.com/archellir/bookmark.arcbjorn.com
Bookmark management web service
https://github.com/archellir/bookmark.arcbjorn.com
Last synced: 6 months ago
JSON representation
Bookmark management web service
- Host: GitHub
- URL: https://github.com/archellir/bookmark.arcbjorn.com
- Owner: archellir
- Created: 2022-11-02T04:59:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T22:41:22.000Z (over 3 years ago)
- Last Synced: 2025-03-18T08:16:52.207Z (over 1 year ago)
- Language: Go
- Size: 179 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Arc bookmark system
### Development
```shell
# run app (currently disabled) and postgres containers
make up
# run all migrations
make migrate_up
# regenerate ORM code (just in case)
make generate_orm
# run backend app in dev mode - http://localhost:8080/
make dev_backend
# run frontend app in dev mode (with hot reloading) - http://127.0.0.1:5173/
make dev_frontend
# run full app in dev mode (no hot reloading) - http://localhost:8080/
make dev_full
---
# shut down & delete app (currently disabled) and postgres containers with volumes
make down
```
### Testing
```shell
# run api and postgres containers
make up
# create test database
make create_db_test
# run all migrations in test database
make migrate_up_test
# regenerate ORM code (just in case)
make generate_orm
# run ORM tests
make test_backend_orm
# run all backend tests
make test_backend
# run frontend unit tests
make test_frontend_unit
# run frontend end-to-end tests
make test_frontend_e2e
# shut down & delete api and postgres containers with volumes
make down
```
### Production
```sh
# build binary (no docker)
make prod
# run binary
./main --production
```
Refer to `Makefile` for other commands.