This is a SNS, where users can share short code snippets and like and comment different posts. They can also like the comments. The displayed posts can be sorted (most liked, newest, most liked in the last 24h, most liked in the last 7 days), and filtered for categories. While writing a post, the user chooses a programming language to add syntax highlighting to their code and adds categories, split by spaces. A user can also adjust their username and password. The application consists of a Vue-Server, an Express Server and a Postgres Database.
cd frontend/appnpm installnpm run servenpm run buildcd backend/postgres_dbnpm run build
# or:
docker compose up --buildnpm run serve
# or:
docker compose upnpm run stop
# or:
docker compose downLogin:
Server: PostgresSQL
User: web
Password: web
Database: db_v1Or pre-filled via:
http://localhost:11000/?pgsql=PostgreSQL&username=web&db=db_v1&ns=public
npm run reset
# or:
docker compose down
docker stop `docker ps -a -q` && docker rm `docker ps -a -q`; docker volume prune
docker compose up --buildcd backend/express_server
npm installnode
> console.log(require('crypto').randomBytes(64).toString('hex'))
> .exit
echo HOST=http://localhost > .env
echo PORT=3000 >> .env
echo TOKEN_SECRET=... >> .envnpm run serveFor development:
npm run dev