Skip to content

louischan-oursky/authgear-server

 
 

Repository files navigation

AuthGear

Work in progress

Database setup

  1. Setup dependencies:
    make vendor
  2. Create a schema:
    CREATE SCHEMA app;
  3. Setup environment variables (in .env):
    DATABASE_URL=postgres://[email protected]:5432/postgres?sslmode=disable
    DATABASE_SCHEMA=app  
    
  4. Apply database schema migrations:
    ./migrate/migrate up

To create new migration:

# ./migrate/migrate new <migration name>
./migrate/migrate new add user table

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.1%
  • JavaScript 0.8%
  • CSS 0.6%
  • Shell 0.2%
  • Makefile 0.2%
  • Dockerfile 0.1%