{"id":18625821,"url":"https://github.com/zgramming/book-store-be","last_synced_at":"2025-11-03T20:30:33.189Z","repository":{"id":231682883,"uuid":"782420416","full_name":"zgramming/book-store-be","owner":"zgramming","description":"Rasa Group Book Store Backend","archived":false,"fork":false,"pushed_at":"2024-04-08T07:20:01.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T06:10:32.124Z","etag":null,"topics":["express-js","prisma"],"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/zgramming.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,"publiccode":null,"codemeta":null}},"created_at":"2024-04-05T09:08:27.000Z","updated_at":"2024-04-05T18:46:05.000Z","dependencies_parsed_at":"2024-04-08T08:43:36.436Z","dependency_job_id":null,"html_url":"https://github.com/zgramming/book-store-be","commit_stats":null,"previous_names":["zgramming/book-store-be"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgramming%2Fbook-store-be","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgramming%2Fbook-store-be/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgramming%2Fbook-store-be/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgramming%2Fbook-store-be/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zgramming","download_url":"https://codeload.github.com/zgramming/book-store-be/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239418729,"owners_count":19635239,"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":["express-js","prisma"],"created_at":"2024-11-07T04:36:07.306Z","updated_at":"2025-11-03T20:30:33.140Z","avatar_url":"https://github.com/zgramming.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RESTful API Node Express\n\nThe project builds RESTful APIs using Node.js, Express for Library Web Apps\n\n## Manual Installation\n\n```bash\ngit clone https://github.com/zgramming/book-store-be.git\ncd book-store-be\n```\n\nInstall the dependencies:\n\n```bash\nnpm install\n```\n\nSet the environment variables:\n\n```bash\ncp .env.example .env\n# open .env and modify the environment variables\n```\n\nRunning Migration for Database\n\n```bash\nnpm run prisma:build\n```\n\n## Table of Contents\n\n- [Commands](#commands)\n- [Environment Variables](#environment-variables)\n- [API Endpoints](#api-endpoints)\n\n## Commands\n\nRunning in development:\n\n```bash\nnpm run dev\n```\n\nRunning in production:\n\n```bash\n# build\nnpm run build\n# start\nnpm run start\n```\n\n## Environment Variables\n\nThe environment variables can be found and modified in the `.env` file.\n\n```bash\n# Database Location\nDATABASE_URL=\"postgresql://postgres:postgres@localhost:5432/book_store?schema=public\"\n\n# JWT Secret\nJWT_SECRECT_KEY=\"6da654d8-b691-4391-8340-e49882447c2c\" # You can ignored it\n```\n\n\n### API Endpoints\n\nList of available routes:\n\n**Master Book routes**:\\\n`GET api/v1/master-books` - Get All Books\\\n`GET api/v1/master-books/:id` - Get Book by id\\\n`POST api/v1/master-books` - Create Book\\\n`PUT api/v1/master-books/:id` - Update Book\\\n`DEL api/v1/master-books/:id` - Delete Book\n\n**Master Student routes**:\\\n`GET api/v1/master-students` - Get All Students\\\n`GET api/v1/master-students/:id` - Get Student by id\\\n`POST api/v1/master-students` - Create Student\\\n`PUT api/v1/master-students/:id` - Update Student\\\n`DEL api/v1/master-students/:id` - Delete Student\n\n**Inventory routes**:\\\n`GET api/v1/inventories` - Get All Inventories\\\n`GET api/v1/inventories/:id` - Get Inventory by id\\\n`POST api/v1/inventories` - Create Inventory\\\n`PUT api/v1/inventories/:id` - Update Inventory\\\n`PUT api/v1/inventories/:id/increase-stock` - Increase stock inventory\\\n`PUT api/v1/inventories/:id/decrease-stock` - Decrease stock inventory\\\n`DEL api/v1/inventories/:id` - Delete Inventory\n\n**Transactions routes**:\\\n`GET api/v1/transactions` - Get All Transactions\\\n`GET api/v1/transactions/:id` - Get Transaction by id\\\n`POST api/v1/transactions` - Create Transaction\\\n`PUT api/v1/transactions/:id/return` - Return book\n\n**History routes**:\\\n`GET api/v1/history-transactions` - Get All History Transactions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgramming%2Fbook-store-be","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzgramming%2Fbook-store-be","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgramming%2Fbook-store-be/lists"}