ent-minimal-web-server

command module
v0.0.0-...-729c28f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

ent-minimal-web-server

Code along minimal web server using ent framework golang

  • see schema of application use enviz:
go run -mod=mod ariga.io/entviz ./ent/schema
  • install atlas:
curl -sSf https://atlasgo.sh | sh

Migration using Versioned Migration

  • make diff:
atlas migrate diff <migration_name> \
  --dir "file://ent/migrate/migrations" \
  --to "ent://ent/schema" \
  --dev-url "docker://postgres/15/test?search_path=public"
  • apply diff:
atlas migrate apply --url "postgres://<username>:<pass>@<hostname>:5432/<db_name>?search_path=public&sslmode=disable" --dir "file://ent/migrate/migrations"  

Run locally

  • To Run:
chmod u+x ./tools/serve.sh
./tools/serve.sh

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL