{"id":15106983,"url":"https://github.com/khaledomar77/store-front-backend","last_synced_at":"2026-02-13T04:40:50.529Z","repository":{"id":160699067,"uuid":"587451631","full_name":"khaledomar77/store-front-backend","owner":"khaledomar77","description":"A backend project for building backend for store and creating RESTful APIs for an online store with Node.js,express.js and PostgreSQL.This project is the second project for advanced full stack web development udacity nanodegree","archived":false,"fork":false,"pushed_at":"2024-02-12T19:47:43.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T18:48:12.435Z","etag":null,"topics":["expressjs","jasmine","javascript","nodejs","postgresql","prettier","typescript"],"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/khaledomar77.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-01-10T19:33:19.000Z","updated_at":"2024-02-11T23:50:44.000Z","dependencies_parsed_at":"2024-10-09T13:01:24.198Z","dependency_job_id":null,"html_url":"https://github.com/khaledomar77/store-front-backend","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.1428571428571429,"last_synced_commit":"2ba22b4a0aabee692c6ce0659f886c2c5e3aacd5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/khaledomar77/store-front-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khaledomar77%2Fstore-front-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khaledomar77%2Fstore-front-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khaledomar77%2Fstore-front-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khaledomar77%2Fstore-front-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khaledomar77","download_url":"https://codeload.github.com/khaledomar77/store-front-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khaledomar77%2Fstore-front-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29396838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T04:26:15.637Z","status":"ssl_error","status_checked_at":"2026-02-13T04:16:29.732Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["expressjs","jasmine","javascript","nodejs","postgresql","prettier","typescript"],"created_at":"2024-09-25T21:03:41.553Z","updated_at":"2026-02-13T04:40:50.494Z","avatar_url":"https://github.com/khaledomar77.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# store-front-backend \n\n## About the project\n\nStackholders want to build an online store for some products available to be purchased. My role is to design a database schema, then build RESTful APIs for retrieving and providing information to the front end develpers.\n\n## Libraries used in this project\n\n* Runtime environment: Node.js.\n* Back end framework: Express.js.\n* Programming Language: Typescript.\n* Database: PostgreSQL.\n* Unit testing: Jasmine \u0026 Supertest.\n\n## How to install project \u0026 dependencies\n\n  To install the project and its dependencies, run `npm install`\n  \u003cbr\u003e To run the application in the development environment run, `npm run dev`\n  \u003cbr\u003e To run the application, run `npm start`\n  \u003cbr\u003e To compile typescript, run `npx tsc`\n  \u003cbr\u003e To run API tests, run `npm test`\n  \u003cbr\u003e To run formatting, run `npm run prettier`\n  \u003cbr\u003e To run linting and correcting code errors, run `npm run lint`\n\n## How to connect to database\n\n  1. Create the main database with name `store_dev`, then create another database for testing with name `store_test`.\n  2. Connect to the database using the command `psql -U postgres`.\n  3. Run the command `db-migrate up` for up-migrations and `db-migrate down` for down-migrations.\n  \n## Environmental variables\n\n  There is list of environment variables located in `.env` for local configuration\n  ```\n  ENV=dev\n  POSTGRES_HOST=127.0.0.1\n  POSTGRES_DB=store_dev\n  POSTGRES_TEST_DB=store_test\n  POSTGRES_USER=postgres\n  POSTGRES_PASSWORD=postgres\n  BCRYPT_PASSWORD=your-secret-password\n  SALT_ROUNDS=10\n  TOKEN_SECRET=my-token-secret\n  ```\n\n## Running Ports\n\n  After start up, the server will start on port `3000` and the database on port `5432`, The application will run at the URL: [http://localhost:3000/](http://127.0.0.1:3000/)\n\n## Endpoint Access\n\nAll endpoints are described in the [REQUIREMENTS.md](REQUIREMENTS.md) file.\n\n## Database schema\n\nFull database schema is defined in the [REQUIREMENTS.md](REQUIREMENTS.md) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhaledomar77%2Fstore-front-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhaledomar77%2Fstore-front-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhaledomar77%2Fstore-front-backend/lists"}