Skip to content

XurxoMF/rustory-api

Welcome to the Rustory API repo

This is the official API used by Rustory to server game files, manage Rustory accounts...

Generate the DB

Before starting the API you need to generate the DB migrations and apply them.

Generate migrations

bun migration:generate

Apply migrations

This will be executed when you start the container so you can skip it

bun migration:migrate

Run the API

The API can be started for development and production.

Development

docker build -f Dockerfile.dev -t rustory-api-docker-dev .
docker run --name rustory-api-dev -d -p 3000:3000 -v $(pwd)/db:/app/db -v $(pwd)/public:/app/public -v $(pwd)/src:/app/src rustory-api-docker-dev

Production

docker build -t rustory-api-docker .
docker run --name rustory-api -d -p 3005:3000 -v $(pwd)/db:/app/db -v $(pwd)/public:/app/public rustory-api-docker

About

API used to serve files and many other things to Rustory

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Contributors