https://github.com/gmisail/fontman-registry
Registry server for fontman
https://github.com/gmisail/fontman-registry
fiber go sqlite
Last synced: about 2 months ago
JSON representation
Registry server for fontman
- Host: GitHub
- URL: https://github.com/gmisail/fontman-registry
- Owner: gmisail
- License: mit
- Created: 2022-09-15T00:21:14.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-11T05:45:35.000Z (over 3 years ago)
- Last Synced: 2025-06-29T18:19:57.019Z (12 months ago)
- Topics: fiber, go, sqlite
- Language: Go
- Homepage:
- Size: 4.83 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fontman-registry
## Building
### Dependencies
- Task (build system)
- PostgreSQL (database)
- Goose (database migrations)
For development, it is recommended that you use `docker-compose`. To run with `docker-compose`, first make sure you have both Docker & Docker Compose.
Then, simply run `sudo docker-compose up --build`. Note that running with `sudo` may be optional depending on how it is installed.
## Installation
### Step 1
First, the `fontman-registry` binary must be built. This can be done by running `task build`.
### Step 2
Next, make sure that you have a PostgreSQL server running. You can run migrations by running the following:
```
cd migrations
goose postgres up
cd ..
```
Now your database is up-to-date!
### Step 3
Make sure that the `PORT` and `DATABASE_URL` environment variables are set. The former will be which port the server will run on (defaults to 8080),
while the latter is the URL of your database (`"postgres://user:pass@database/name"`).
You are now all set! Simply run `./bin/fontman-registry`.
## Usage
TBD.