{"id":15097792,"url":"https://github.com/gustavovalle23/restaurant-monolith-node","last_synced_at":"2026-02-26T06:01:27.528Z","repository":{"id":164913171,"uuid":"601417374","full_name":"gustavovalle23/restaurant-monolith-node","owner":"gustavovalle23","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-18T02:46:24.000Z","size":605,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T17:44:28.908Z","etag":null,"topics":["docker","docker-compose","koajs","nodejs","postgresql","prisma","taskfile"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/gustavovalle23.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":"2023-02-14T02:35:21.000Z","updated_at":"2023-04-21T23:01:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f17c135-4a89-411b-8912-6e34e5b5238e","html_url":"https://github.com/gustavovalle23/restaurant-monolith-node","commit_stats":{"total_commits":43,"total_committers":1,"mean_commits":43.0,"dds":0.0,"last_synced_commit":"ac8e319808c6a22e1fb6dc9c3dc4e58d9146371c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavovalle23%2Frestaurant-monolith-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavovalle23%2Frestaurant-monolith-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavovalle23%2Frestaurant-monolith-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavovalle23%2Frestaurant-monolith-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gustavovalle23","download_url":"https://codeload.github.com/gustavovalle23/restaurant-monolith-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245853858,"owners_count":20683262,"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":["docker","docker-compose","koajs","nodejs","postgresql","prisma","taskfile"],"created_at":"2024-09-25T16:40:31.523Z","updated_at":"2025-10-30T11:57:10.903Z","avatar_url":"https://github.com/gustavovalle23.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Application Setup\n\n### Prerequisites\n\n- Node.js (v14 or higher)\n- Docker (if using Docker for running the application in a container)\n\n### Installation\n1. Clone the repository to your local machine.\n\n```bash\ngit clone git@github.com:gustavovalle23/restaurant-monolith-node.git\n```\n\n2. Navigate to the project directory.\n\n```bash\ncd restaurant-monolith-node\n```\n\n3. Install dependencies.\n\n```bash\nyarn install\n```\n\n### Database Setup\n\nThe application uses Prisma for database management. Follow the steps below to set up the database:\n\n1. Up the database migration to create the initial schema.\n\n```bash\ntask run:db\n```\n\n2. Run the database migration to create the initial schema.\n\n```bash\ntask prisma\n```\n\n### Running the Application\n\n1. Start the application.\n\nAt local machine:\n```bash\nnode index.js\n```\n\nContainer:\n```bash\ntask run\n```\n\n2. Enter the container to access the application.\n\n```bash\ntask app\n```\n\n### Testing the Application\n\nUse a REST API client (such as Postman or cURL) to test the application. Send a POST request to the following URL with the request body as shown below:\n\n```\nPOST {{baseUrl}}:3000/users\nContent-Type: application/json\n\n{\n  \"name\": \"myuser\",\n  \"password\": \"mypassword\",\n  \"email\": \"email@gmail.com\",\n  \"birthDate\": \"1999-01-01\",\n  \"address\": {\n    \"country\": \"BR\",\n    \"state\": \"SP\",\n    \"street\": \"Fake Street\",\n    \"number\": 23\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavovalle23%2Frestaurant-monolith-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgustavovalle23%2Frestaurant-monolith-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavovalle23%2Frestaurant-monolith-node/lists"}