An open-source social media. Mirror from https://github.com/hknsh/project-knedita.git
Find a file
2024-09-28 00:10:46 +01:00
.github chore: changed ci to check in biome 2024-02-03 15:52:18 +00:00
.husky fix: fixed husky with commitlint and biome 2024-02-03 15:09:39 +00:00
.vscode feat: added biome on pre-commit 2024-02-03 14:41:32 +00:00
prisma feat: added create kweek route & multi file upload 2024-02-05 18:08:32 +00:00
resources chore: updated readme image 2024-02-15 11:30:41 +00:00
src Merge branch 'refactoring' of github.com:hknsh/project-knedita into refactoring 2024-09-28 00:10:46 +01:00
test feat: added biome on pre-commit 2024-02-03 14:41:32 +00: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
commitlint.config.js feat: added biome on pre-commit 2024-02-03 14:41:32 +00:00
docker-compose.db.yml feat: added swc, file upload, new route and minio 2024-01-30 20:22:17 +00:00
docker-compose.yml fix: fixed dockerfile 2024-01-31 12:58:50 +00: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-lock.json feat: safer environment variables, updated packages 2024-09-28 00:05:00 +01:00
package.json feat: safer environment variables, updated packages 2024-09-28 00:05:00 +01:00
README.md feat: safer environment variables, updated packages 2024-09-28 00:05:00 +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 Node, NPM, Docker and Docker Compose installed on your computer.

First, install the necessary packages with the following commands:

$ npm 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:

$ npm run docker:db

This will start the following services:

  • PostgreSQL
  • Redis
  • MinIO

Apply the migrations to the database with the following command:

$ npm run migrate:dev

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

$ npm run dev:start

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

To run in production you can use the following command:

$ npm run docker

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

🗄️ Stack

This back-end uses the following stack:

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

License

MIT