/Nineties-Namer

Go implementation of Nineties Namer

Primary LanguageJavaScriptMIT LicenseMIT

Nineties Namer

Go implementation of Nineties Namer

see ./routes/router.go

Usage

Running

LISTEN=127.0.0.1 \
PORT=8000 \
go run main.go

Developing

UI Dev

cd ui
yarn install
yarn run dev

webpack proxies specific api requests to https://90s.fun/[random,names]

API Dev

if you want to use the ui

run the server locally, update ./ui/config/index.js

change const apiUrl = liveApiUrl; to const apiUrl = localDevApiUrl

Curl interface

curl 127.0.0.1:8080/random

pete meets world

curl 127.0.0.1:8080/names/v1.0.2

trapper pager

curl 127.0.0.1:8080/names/v1.0.3

wu tang girls

Web interface

open http://localhost:8080

Tests

go test

Building in Docker

make docker

Running in Docker

make run