KamWithK / exSTATic-server

Experiment creating a backend for exSTATic with golang and turso

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exSTATic Server

This is a work in progress project to make exSTATic into a website

Architecture

exSTATic uses the following services:

Local Development Overview

Environment Variables

  • The .env file is read by docker compose
  • Copy the .sample.env file to .env and fill in any credentials

Database Migrations

  • 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

Running

  • Run air and navigate to http://localhost:8080/ for a live reloading setup
  • Run go test ./... in the backend directory to run all tests

About

Experiment creating a backend for exSTATic with golang and turso

License:GNU General Public License v3.0


Languages

Language:Go 93.1%Language:HTML 4.0%Language:Dockerfile 1.7%Language:HCL 1.1%