During development, I deliberately focused on the backend, so the frontend here plays more of a supporting role—it's a minimal stub application that makes interacting with the API more visual and convenient than using curl or Postman.
This small project reflects my vision of what a well-designed, high-quality server-side API on Fastify might look like. I really like this framework and can confidently recommend it to other developers.
I highly recommend visiting this amazing framework's website
git clone https://github.com/nhankyjangchan/librechatjs_v2 librechatjs
cd librechatjscd server
npm i
cd ../client
npm ipsql -U postgres
CREATE DATABASE librechatjs;
# Sequelize will automatically create tables when the backend starts
\qcd server
mv ./.env.example ./.envcd client
npm run devsudo systemctl start postgresql
psql -U postgres -d librechatjscd server
npm run devGo to the login page, register a user with the name "admin" (or another name).
Connect to the database and run:\c librechatjs
UPDATE users SET "isAdmin" = true WHERE username = 'admin';