Custom library api used to stream/download personal library collection.
TODO:
- Convert to Typescript for future readability
- Use RxJS Observables instead of generic Promises
- Improve stream handling
- npm
- tmux
To use a JWT secret other than the one used for dev, set the API_SECRET environment variable.
To connect to a MongoDB server, just set environment variables for:
LIBRARY_MONGO_URLLIBRARY_MONGO_USERLIBRARY_MONGO_PASS
Library API uses tmux as a way to help start up the express server on reboots, passing the environment variables through. It expects .env to be set in the base of the project.
npm install # OR yarn
node server # OR ./open-library