/simple-auth-sw

A simple authentication service written in Go, just for learning Service Weaver.

Primary LanguageGo

simple-auth-sw

About

A simple authentication service written in Go, just for learning Service Weaver.

Getting Started

Prerequisites

Setup

  1. Clone this repository.
git clone https://github.com/wst24365888/simple-auth-sw
cd simple-auth-sw
  1. Create db.env file in the root directory of this project, and fill in the environment variables according to db.env.example.
  2. Create weaver.toml file in the root directory of this project, and fill in the variables according to weaver.toml.example.
  3. Start the database and the app. The app will be available at http://localhost:8888
docker compose up -d

⚠️ IMPORTANT: Don't build the app image like this in production, weaver.toml is already the deployment configuration file of Service Weaver. This is only used to creat a local linux environment.