A simple authentication service written in Go, just for learning Service Weaver.
- Clone this repository.
git clone https://github.com/wst24365888/simple-auth-sw
cd simple-auth-sw
- Create
db.env
file in the root directory of this project, and fill in the environment variables according todb.env.example
. - Create
weaver.toml
file in the root directory of this project, and fill in the variables according toweaver.toml.example
. - 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.