An open-source social media. Mirror from https://github.com/hknsh/project-knedita.git
Find a file
2024-10-25 00:11:08 +01:00
.github chore: changed ci to check in biome 2024-02-03 15:52:18 +00:00
.husky feat: removed deprecated commands from husky, updated packages 2024-10-12 17:41:20 +01:00
.vscode feat: added biome on pre-commit 2024-02-03 14:41:32 +00:00
prisma feat: replaced prisma to kysely for queries 2024-10-20 21:46:30 +01:00
resources chore: updated readme image 2024-02-15 11:30:41 +00:00
src feat: improved queries, removed unnecessary imports 2024-10-25 00:11:08 +01:00
.commitlintrc.json fix: rename DTO name 2024-02-03 17:00:10 +00:00
.dockerignore fix: fixed dockerfile 2024-01-31 12:58:50 +00:00
.editorconfig Updated editorconfig 2023-08-09 16:53:46 -03:00
.env.example chore: update env templates 2024-02-15 13:48:27 +00:00
.gitignore chore: updated .gitignore 2024-01-30 20:46:07 +00:00
.swcrc feat: added biome on pre-commit 2024-02-03 14:41:32 +00:00
biome.json feat: added create kweek route & multi file upload 2024-02-05 18:08:32 +00:00
bun.lockb feat: replaced prisma to kysely for queries 2024-10-20 21:46:30 +01:00
commitlint.config.js feat: added biome on pre-commit 2024-02-03 14:41:32 +00:00
docker-compose.db.yml feat: finished routes, renamed a few files and functions 2024-10-12 17:36:41 +01:00
docker-compose.yml feat: finished routes, renamed a few files and functions 2024-10-12 17:36:41 +01:00
docker.env.example chore: update env templates 2024-02-15 13:48:27 +00:00
Dockerfile fix: fixed dockerfile 2024-01-31 12:58:50 +00:00
LICENSE chore: updated license date 2024-02-03 15:59:00 +00:00
nest-cli.json feat: added biome on pre-commit 2024-02-03 14:41:32 +00:00
package.json feat: replaced prisma to kysely for queries 2024-10-20 21:46:30 +01:00
README.md feat: improved queries, removed unnecessary imports 2024-10-25 00:11:08 +01:00
tsconfig.build.json feat: added biome on pre-commit 2024-02-03 14:41:32 +00:00
tsconfig.json feat: safer environment variables, updated packages 2024-09-28 00:05:00 +01:00

Project Knedita

A simple RESTful API made with NestJS and Fastify.

🚀 Preparing the environment

Make sure that you have Bun, Docker and Docker Compose installed on your computer.

This project also works with Node and Npm.

First, install the necessary packages with the following commands:

bun i

After that, you can update the .env and the docker.env files. The .env file is for development environment and the docker.env is for production.

You can find the templates for those files on .env.example and docker.env.example.

To run the necessary services you can execute the following command:

bun docker:db

This will start the following services:

  • PostgreSQL
  • Redis
  • MinIO

Apply the migrations to the database with the following command:

bun migrate:dev

And now, you can start the server with the command:

bun dev:start

You can check the documentation accessing the endpoint / in your browser

To run in production you can use the following command:

bun docker

This will start all the previous services and the back-end image.

🗄️ Stack

This back-end uses the following stack:

  • NestJS
  • Fastify
  • Prisma
  • Kysely
  • MinIO
  • PostgreSQL
  • Redis
  • Swagger
  • Typescript

License

MIT