A simple API/application, similar in spirit to Cataas
. Just with seals instead.
Why not?
Here's how to serve your own seals in a development environment. By default SEaa(L)S listens on port 3000. Override this by setting your PORT environment variable.
- Install node/npm:
brew install node
/choco install nodejs
- Clone the repo
- Install dependencies with
npm i
- Setup the .env file, using the defaults from .env.example
- Ensure that your chosen seal directory exists. Default is in src/resources/seals
- Init the DB with
npx prisma migrate dev
- Run the application with
npm run dev
If you want to deploy this in a production environment, make some more production appropriate choices, E.G:
- Change Prisma's DB provider to something other than SQLite in
prisma/prisma.schema
- Use
migrate deploy
rather thanmigrate dev
Mainly so I don't forget...
- Update
prisma/schema.prisma
- Run
npx prisma migrate dev --name <Migration Name>
By default the following MIME types are accepted by SEaa(L)S
- image/png
- image/jpeg
- image/jpg
- image/webp
- image/gif
If you want more, less, or different MIMEs, add VALID_MIMES
to your .env file as a comma delimited list