Skip to content

hofstadter-io/_saas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

_saas

An open source toolset for B2B SaaS operations by Hofstadter.

Running the example

The design is in the ./design/*.cue files. It uses

  • hofmod-server for a REST API and extras
  • hofmod-cli for the binary entrypoint
Generate and build the server
hof mod vendor
make server
Database setup
# Starts Postgres 13 in docker
make db-up

# Check db connection
./server db test

# Migrate the DB Schema
./server db migrate

# Seed the database
./server db seed

# Run the PSQL repl
make psql

# Stop the database
make db-down

# Destroy the database
make db-nuke
Run the server
# Run the example server in dev mode
./saas run

# Print server config and secrets
./saas config

# Print server routes
./saas routes
Calling the server
# bad route(s)
curl localhost:1323              // not found  (404)

# test auth
./saas api -a 953e7caf-1fa6-4558-a693-4118fce9615e get auth/test

# alive & metrics
./saas api -a 953e7caf-1fa6-4558-a693-4118fce9615e get internal/alive
./saas api -a 953e7caf-1fa6-4558-a693-4118fce9615e get internal/metrics

# entity routes
./saas api -a 953e7caf-1fa6-4558-a693-4118fce9615e get admin/user

About

An open source toolset for SaaS operations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published