{"id":14974086,"url":"https://github.com/soaibsafi/pizzapeddler","last_synced_at":"2026-01-27T19:49:08.876Z","repository":{"id":129603037,"uuid":"327892097","full_name":"soaibsafi/PizzaPeddler","owner":"soaibsafi","description":"A Pizza management system using PL/pgSQL and Node. ","archived":false,"fork":false,"pushed_at":"2021-02-10T20:24:49.000Z","size":1025,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"SubmitProject","last_synced_at":"2025-01-09T06:15:14.419Z","etag":null,"topics":["management-system","plpgsql","postgres","postgresql"],"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/soaibsafi.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":"2021-01-08T12:07:20.000Z","updated_at":"2021-05-28T12:02:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc074b20-0381-4de7-b9ff-8f33087244ef","html_url":"https://github.com/soaibsafi/PizzaPeddler","commit_stats":{"total_commits":95,"total_committers":3,"mean_commits":"31.666666666666668","dds":0.4842105263157894,"last_synced_commit":"adcf0a225ec11eb22977467dc1e86484f44450b1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soaibsafi%2FPizzaPeddler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soaibsafi%2FPizzaPeddler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soaibsafi%2FPizzaPeddler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soaibsafi%2FPizzaPeddler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soaibsafi","download_url":"https://codeload.github.com/soaibsafi/PizzaPeddler/tar.gz/refs/heads/SubmitProject","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240859705,"owners_count":19869195,"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":["management-system","plpgsql","postgres","postgresql"],"created_at":"2024-09-24T13:49:55.998Z","updated_at":"2026-01-27T19:49:08.766Z","avatar_url":"https://github.com/soaibsafi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pizza Peddler\n\n### About\n\nThis project is an online pizza ordering application build with PostgreSQL, PL/pgSQL,NodeJS, and Vanilla JS. All the backend logic and functionalities are implemented in Pl/pgSQL. The REST API is used as middleware between PL/pgSQL and the frontend which is made with Vanilla JS.\n\n### Application Architecture\n\n- Frontend (public \u0026 templates/views)\n- Backend (Recources/Scripts/functions.sql)\n- REST API (src)\n- Database (Recources/Scripts/)\n\n### Prerequisites\nThe following environment is required to run this application.\n\n- PostgreSQL with PL/pgSQL installed. (Recommended pgAdmin)\n- NodeJS 12.x or higher with npm.\n    - express: ^4.17.1\n    - hbs: ^4.1.1\n    - nodemon: ^2.0.4\n    - pg: ^8.5.1\n    - request: ^2.88.2\n\n\n### How to Run\n1. Create a database in PostgreSQL from `pgAdmin`-\n\n`CREATE DATABASE \u003cdb_name\u003e`\n\n2. Navigate to the `src/app.js` file and initialize the client with the database details- \n```\nvar client = new Client({\n    user: \u003cdatabase_user_name\u003e,\n    host: \u003cdatabase_host\u003e,\n    database: \u003cdatabase_name\u003e,\n    password: \u003cuser_password\u003e,\n    port: \u003cport\u003e,\n});\n```\nNote: Default port is `5432`. The port can be found using following query-\n`SELECT * FROM pg_settings WHERE name = 'port';`\n\n3. From the taskbar of the `pgAdmin` open `SQL` and load \u0026 execure the following `.sql` files-\n    - `Recources/Scripts/table.sql`\n    - `Recources/Scripts/function.sql`\n\n\n4. Install the required npm packages-\n\n`npm install`\n\n5. Navigate to the root directory and run-\n\n`node src/app.js`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoaibsafi%2Fpizzapeddler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoaibsafi%2Fpizzapeddler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoaibsafi%2Fpizzapeddler/lists"}