Go4Lage serves as the ideal platform for launching small to medium-sized
projects, whether you need a backend for your application or a server-side
rendered web application. Crafted in Go, it offers simplicity and
exceptional speed. Designed for self-hosting within a Docker Compose
network, Go4Lage ensures significant cost savings for your company, making
it more competitive for small to medium-sized enterprises. It includes a
comprehensive range of features.
- Clone this repo.
- Copy the Docker environment settings to
.env
: - Adjust .env if needed.
cp dockerenv .env
- Start the Docker Compose stack (in background):
docker-compose up -d
This is similar to variant Two but with one additional step for a production environment:
- Use a native Nginx instance on your VPS and point it to the Docker containers for SSL. This setup allows you to have multiple Go4Lage instances, one per customer if needed.
You can access the command line with:
docker-compose exec app /bin/bash
This will display your commands.
./go4lage
This will create your superuser for example.
./go4lage createsuperuser
Now you can access the admin dashboard and create normal users. By accessing it with /admin in the url.
- Clone this repo.
- Navigate to the SQL package:
cd /pkg/sql
- Generate SQL code:
sqlc generate
-
Return to the root directory:
-
Copy the native environment settings to
.env
:
cp nativeenv .env
- Adjust the
.env
file to your needs. - In PostgreSQL:
- Create a database user and password.
- Grant the user all rights on the database.
- migrate the database.
- Build your application.
The admin dasboard is a vite react app availbale non-minified in a different repository.
In fact, the documentation is this repo.