{"id":27312406,"url":"https://github.com/ksenialf/meduzzen-app-backend","last_synced_at":"2026-04-30T16:32:10.892Z","repository":{"id":213692019,"uuid":"708953723","full_name":"KseniaLF/meduzzen-app-backend","owner":"KseniaLF","description":"Backend, pet-project","archived":false,"fork":false,"pushed_at":"2024-02-05T21:13:13.000Z","size":266,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-31T17:09:08.099Z","etag":null,"topics":["nestjs","redis","sql","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KseniaLF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-10-23T18:06:37.000Z","updated_at":"2024-02-04T19:07:58.000Z","dependencies_parsed_at":"2023-12-22T13:21:15.865Z","dependency_job_id":"ec41777f-35e5-4aac-a2fd-9dbd2389c3ef","html_url":"https://github.com/KseniaLF/meduzzen-app-backend","commit_stats":null,"previous_names":["ksenialf/meduzzen-app-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KseniaLF%2Fmeduzzen-app-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KseniaLF%2Fmeduzzen-app-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KseniaLF%2Fmeduzzen-app-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KseniaLF%2Fmeduzzen-app-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KseniaLF","download_url":"https://codeload.github.com/KseniaLF/meduzzen-app-backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530621,"owners_count":21119591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nestjs","redis","sql","typescript"],"created_at":"2025-04-12T06:39:56.322Z","updated_at":"2026-04-30T16:32:05.860Z","avatar_url":"https://github.com/KseniaLF.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About the project\n\n### This application has these features:\n\n- Secure authorization/authentication using `JWT` tokens\n- Company formation possibility to invite/accept a person to your company\n- Possibility to submit/reject a request to join a company\n- There are `@Roles` in companies. Participants have more opportunities and power in the company if they have the role of administrator.\n- You can create `quizzes`, go through them, monitor the rankings\n\n### Technologies used:\n\n- Nest.js and TypeScript\n- JWt tokens to identify an authenticated user\n- PostgreSQL database and TypeORM migrations\n- Redis for caching\n\n## Installation\n\n```bash\n$ git clone https://github.com/KseniaLF/meduzzen-app-backend.git\n\n$ cd meduzzen-app-backend\n$ npm install\n```\n\nand copy the `.env.sample` variables into a separate `.env` file, fill them out \u0026 and that's all you need to get started!\n\n## Running the app\n\n```bash\n# development\n$ npm run start\n\n# watch mode\n$ npm run start:dev\n\n# production mode\n$ npm run start:prod\n```\n\n## Test\n\n```bash\n# unit tests\n$ npm run test\n\n# e2e tests\n$ npm run test:e2e\n\n# test coverage\n$ npm run test:cov\n```\n\n## Docker\n\n```bash\n# launch this application within Docker\n$ docker build . -t my-app\n$ docker run -p 3001:3001 my-app\n```\n\nThen go to this link [http://localhost:3001/api](http://localhost:3001/api) to see if the server is running.\n\n```bash\n# run tests within Docker\n$ docker run my-app sh -c \"TEST_COMMAND\"\n```\n\n```bash\n# run this app with docker-compose\n$ docker compose up\n```\n\n## Migrations\n\nOnce you setup connection options you can create a new migration using CLI:\n\n```bash\n$ npm run migration:create\n```\n\nTo automatically generate migration files with the changes made to the schema, use the following command:\n\n```bash\n$ npm run migration:generate\n```\n\nUse this command to run the migration:\n\n```bash\n$ npm run migration:run\n```\n\nIf for some reason you want to revert the changes, you can run:\n\n```bash\n$ npm run migration:revert\n```\n\nThe migrations will be saved in the folder `src/migrations`\n\n---\n\n## Redis\n\n### Install Redis and WSL\n\n```bash\nwsl --install\n\ncurl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg\n\necho \"deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main\" | sudo tee /etc/apt/sources.list.d/redis.list\n\nsudo apt-get update\nsudo apt-get install redis\n\nsudo service redis-server start\n\nredis-cli\nping\n```\n\n### Redis cli\n\n```bash\n\n# Start the Redis server:\n$ sudo service redis-server start\n\n\n# Stop the Redis server:\n$ sudo service redis-server stop\n```\n\n```bash\n# Open the redis cli:\n$ redis-cli\n\n# Get all KEYS:\n$ KEYS *\n\n# Delete all keys:\n$ FLUSHDB\n\n# Delete specific keys:\n$ DEL \"health_check\"\n\n# Get TTL (Time To Live)\n$ TTL health_check\n```\n\n### Links\n\n[Medium: the article that helped me connect to Redis](https://medium.com/@mut1aq/using-redis-in-nestjs-8ca1a009670f)\n\n### Notes\n\n❌ There are not exists `max`imum number of items in cache.\nAnd not work decorator `@CacheTTL(..)` ❌\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksenialf%2Fmeduzzen-app-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksenialf%2Fmeduzzen-app-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksenialf%2Fmeduzzen-app-backend/lists"}