Torichan is a work-in-progress imageboard implementation using Nest.js
In this application, there is currently limited functionality, but we have just begun development, and you have every opportunity to follow it through to the final release :).
In this case, you have 2 installation methods, which we will explain further.
After saving the source code, do the following:
- Make
volumes
directory in yourtorichan
project root:$ cd torichan $ mkdir -p ./volumes
- Make
.env
file in yourtorichan
project root:$ touch .env
- Fill the
.env
file with the following values:POSTGRES_HOST='db.torichan' POSTGRES_PORT=5432 POSTGRES_USER='your_pg_user_name' POSTGRES_PASSWORD='your_pg_user_password' POSTGRES_DB='torichan' PGDATA='/var/lib/postgresql/data/pgdata' DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}?schema=public"
- Edit configurations in the file
application.yml
as you wish, but we strongly recommend you to change default values by pathssecure.secret.session
,secure.secret.password
andsecure.secret.captcha
. - Next run the following commands:
$ docker-compose build $ docker-compose up
Then go to localhost:13000. And now you're awesome! Enjoy using the application!
Now you can go to localhost:13000/admin/sign-up and create your first admin profile.
If you want to install the application without using Docker, you will need to perform the following set of actions:
- Install and configure PostgreSQL 13. (I won't provide installation and setup instructions for Postgres here; you can find them on your own).
- Install and configure Node.js 21.0.* (You can find all installation instructions on your own).
- Additionally, if you wish, you can independently find and install any PostgreSQL client of your choice, such as PgAdmin or DBeaver.
- Make
.env
file in yourtorichan
project root and put the following settings:POSTGRES_HOST='localhost' POSTGRES_PORT=5432 POSTGRES_USER='your_pg_user_name' POSTGRES_PASSWORD='your_pg_user_password' POSTGRES_DB='torichan' PGDATA='/var/lib/postgresql/data/pgdata' DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}?schema=public"
- If you need, you can edit
application.yml
file and set here your own settings. - After all installations, please run the following commands:
# Install dependencies $ npm i # Run Prisma migrations $ npx prisma migrate dev # Run the application $ npm run start:dev
- Then go to localhost:3000. And enjoy using the application!
- Now you can go to localhost:3000/admin/sign-up and create your first admin profile.
You now have an easier way to create your own localization for the Torichan engine.
An example file with all the localizable strings can be found at: torichan/src/utils/locale/locale-en.ts
You can create another file with your own strings in your language based on the file strings-en.ts
and connect it by importing it in the file torichan/src/utils/locale/locale.ts
Alternatively, you can simply rewrite the existing strings in the locale-en.ts
file in the language you want to translate the site into.
If desired, you can submit pull requests with your completed localizations.
Because we believe that open source is important.