Run docker-compose up
.
- web interface at
http://localhost:3000
- api at
http://localhost:3100
Mongo takes a bit longer to fire up on first run, the api will throw errors as the process restarts until mongo comes up.
While the whole setup is running, run docker-compose exec api bash
in a separate process and then node ./cmd/createuser <username> <password> <email>
to create the first user and you should be able to log in.
After mongo has been installed, run mongosh
and then:
db.createUser(
{
user: "pinkie",
pwd: "password",
roles: [ { role: "readWrite", db: "yayhooray" } ]
}
)
then drop a DATABASE_URL=mongodb://pinkie:password@localhost:27017/yayhooray
into /root/yay.env