A Website made to share series, movies and animes with my friends. This is the backend side of it.
It has the name "OBODE" because that's the way some of my friends call me. It comes from a joke with a League of Legends character called "Ornn".
- A PostgreSQL instance (locally or using Docker)
- Node.js version 16 or higher
- PNPM
- Make sure you have a PostgreSQL instance running
- Create a
.env
file following the same pattern as in the ".example.env" file - Install the packages with
pnpm install
- Run the project with
pnpm dev
- Build the project with
pnpm build
- Push the Prisma migrations to the database using
pnpm prisma migrate deploy
- Start the project with
pnpm start:dev
DATABASE_URL
: The PostgreSQL instance URL. It's divided into 4 parts:db_login
(the login to access the database),db_password
(the password to access the database),db_host
(the address to access the database) anddb_name
(the name of the database). Substitute those parts with your environment values.PORT
: The port where your application will run. The default value is3000
.SECRET
: A secret word that will be used to encode your JSON Web Tokens. Make sure you use a strong secret, with a great diversity of letters, numbers and special characters.SERIES_BASE_URL
: The root folder where all your series are saved.SERIES_FOLDER_IGNORE_ITEMS
: A stringified JSON-format string array that contains all folders and files the folder importer should ignore.