Skip to content

Kirimson/seaals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4dfa870 · May 5, 2023

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEaa(L)S 🦭 SEals as a Service

A simple API/application, similar in spirit to Cataas. Just with seals instead.

Why Seals?

Why not?

Setup

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.

  1. Install node/npm: brew install node/choco install nodejs
  2. Clone the repo
  3. Install dependencies with npm i
  4. Setup the .env file, using the defaults from .env.example
  5. Ensure that your chosen seal directory exists. Default is in src/resources/seals
  6. Init the DB with npx prisma migrate dev
  7. 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:

  1. Change Prisma's DB provider to something other than SQLite in prisma/prisma.schema
  2. Use migrate deploy rather than migrate dev

Development

Mainly so I don't forget...

Updating DB Schema

  1. Update prisma/schema.prisma
  2. Run npx prisma migrate dev --name <Migration Name>

Troubleshooting

Why is [insert image type] not uploading?

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

About

SEaa(L)S. SEals as a Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published