This project utilizes Bun, a fast all-in-one JavaScript runtime.
Make sure you have Docker and Docker Compose installed on your system. Additionally, ensure that Docker can run without sudo access for ease of use.
- Clone the repository to your server:
git clone <repository_url>
- Copy
.env.example
to.env
:
cp .env.example .env
- The
ADMINS
env var should have a format ofadminname1:token1,adminname2:token2
etc.
To install dependencies, run:
bun install
To start the application, run:
bun run index.ts
Alternatively, you can use Docker Compose to run the application:
docker-compose up -d
To Update the Image run:
docker-compose pull && docker-compose up -d
The service will be accessible at port 3000.
To update the state, open this page with a basic form and hit submit after entering tokens defined in .env
$sitename/libraryopen/edit/:token
Replace $sitename
with the actual domain or IP address where the service is hosted. Ensure that the :admintoken
matches the one set in the .env
file. Admins should keep the token secure.