This is a work in progress project to make exSTATic into a website
exSTATic uses the following services:
- Fly.io for hosting
- Turso for production database (distributed LibSQL)
- LibSQL for local/test file databases (SQLite fork)
- Atlas for database migrations
- Google OAuth 2.0 for social login
- The
.env
file is read by docker compose - Copy the
.sample.env
file to.env
and fill in any credentials
- To check the database migration status run
atlas migrate status --env local
- To create a migration run
atlas migrate diff --env local MIGRATION_NAME
- To execute migrations run
atlas migrate apply --env local
Note: Local file databases are used for easy testability
- Run
air
and navigate tohttp://localhost:8080/
for a live reloading setup - Run
go test ./...
in thebackend
directory to run all tests