{"id":16971923,"url":"https://github.com/manununhez/pj-ecommerce-foraging-api","last_synced_at":"2026-04-13T20:31:58.729Z","repository":{"id":235576929,"uuid":"337068660","full_name":"manununhez/pj-ecommerce-foraging-api","owner":"manununhez","description":"API for the pj-ecommerce-foraging project","archived":false,"fork":false,"pushed_at":"2024-04-23T20:46:54.000Z","size":34174,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-23T13:50:28.575Z","etag":null,"topics":["api-rest","backend","express-js"],"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/manununhez.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":"2021-02-08T12:28:08.000Z","updated_at":"2024-04-23T20:46:57.000Z","dependencies_parsed_at":"2024-04-23T22:29:04.302Z","dependency_job_id":"13d0ea32-05e7-4c01-a8bd-978f8fc2babb","html_url":"https://github.com/manununhez/pj-ecommerce-foraging-api","commit_stats":null,"previous_names":["manununhez/pj-ecommerce-foraging-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manununhez/pj-ecommerce-foraging-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manununhez%2Fpj-ecommerce-foraging-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manununhez%2Fpj-ecommerce-foraging-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manununhez%2Fpj-ecommerce-foraging-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manununhez%2Fpj-ecommerce-foraging-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manununhez","download_url":"https://codeload.github.com/manununhez/pj-ecommerce-foraging-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manununhez%2Fpj-ecommerce-foraging-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31770718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: 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":["api-rest","backend","express-js"],"created_at":"2024-10-14T00:55:50.578Z","updated_at":"2026-04-13T20:31:58.699Z","avatar_url":"https://github.com/manununhez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express Backend API\n\nThis Express backend API provides endpoints for interacting with various data related to an experiment or survey. It includes functionalities for retrieving initial data, complete results, and per-user results, as well as saving data from forms and user interactions.\n\n## Installation\n\nTo run this Express backend locally, follow these steps:\n\n1. Clone this repository.\n2. Navigate to the project directory.\n3. Install dependencies with `npm install`.\n4. Create a `.env` file in the root directory and add necessary environment variables if required.\n\n## Usage\n\nTo start the server, run `npm start`. The server will listen on the specified port (default is 5000).\n\n## Endpoints\n\nHere are the available endpoints:\n\n- `GET /versions`: Get initial data.\n- `GET /psform/:sex`: Get form data based on gender.\n- `GET /apptext/:sex`: Get application text data based on gender.\n- `GET /inituserdata/:version`: Get initial user data based on version.\n- `GET /bargains-result/:type`: Get complete bargains result.\n- `GET /bargains-result-per-store/:type`: Get bargains result per store.\n- `GET /survey-result/:type`: Get complete survey result.\n- `GET /demographic-result/:type`: Get complete demographic result.\n- `GET /memory-result/:type`: Get complete memory task result.\n- `GET /users`: Get all users.\n- `GET /participants-count-result`: Get count of participants.\n- `GET /bargains-result/:type/:userId`: Get bargains result per user.\n- `GET /bargains-result-per-store/:type/:userId`: Get bargains result per store per user.\n- `GET /survey-result/:type/:userId`: Get survey result per user.\n- `GET /demographic-result/:type/:userId`: Get demographic result per user.\n- `GET /memory-result/:type/:userId`: Get memory task result per user.\n- `GET /convert-short-stores`: Convert short stores.\n- `GET /convert-long-stores`: Convert long stores.\n- `GET /stores-long`: Get long stores from file.\n- `GET /stores-short`: Get short stores from file.\n- `POST /upload-stores`: Upload stores data.\n- `POST /psform`: Create PS form data.\n- `POST /visualpattern`: Create visual pattern data.\n- `POST /userinfo`: Create user info data.\n- `POST /userlogtime`: Create user log time data.\n- `POST /usergeneraldata`: Create user general data.\n- `POST /userbargain`: Create user bargain data.\n\n## Configuration\n\nYou may need to set environment variables in a `.env` file for configuration. Common variables include:\n\n- `PORT`: The port on which the server will listen.\n- Other database-related variables if required.\n\n## Technologies Used\n\n- Node.js\n- Express.js\n- dotenv\n- cors\n- express-fileupload\n- compression\n\n## Contributing\n\nContributions to this project are currently not open to the public. However, if you are interested in collaborating or have inquiries about the project, please contact the project maintainers.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanununhez%2Fpj-ecommerce-foraging-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanununhez%2Fpj-ecommerce-foraging-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanununhez%2Fpj-ecommerce-foraging-api/lists"}