{"id":19552995,"url":"https://github.com/emilracz21/oddity-emporium-react","last_synced_at":"2026-04-07T07:41:22.384Z","repository":{"id":262020442,"uuid":"885945729","full_name":"emilRacz21/oddity-emporium-react","owner":"emilRacz21","description":"A web application that allows users to browse, add, and review inventions. It features a React-based front-end that communicates with a Node.js backend using MongoDB for data storage. Users can add new inventions, upload images, leave reviews, and interact with the product catalog.","archived":false,"fork":false,"pushed_at":"2025-09-03T20:59:50.000Z","size":3854,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:28:34.619Z","etag":null,"topics":["backend","css","db","frontend","get-post-put-delete-methods","html","javascript","mongodb","mongodb-atlas","nodejs","react","restfull-api","sass","scss","usecontext","useeffect","usestate"],"latest_commit_sha":null,"homepage":"https://oddityshop.netlify.app/","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/emilRacz21.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-09T20:05:31.000Z","updated_at":"2025-09-03T20:59:53.000Z","dependencies_parsed_at":"2024-11-10T00:23:06.943Z","dependency_job_id":"ddedc977-df0d-4f35-94d3-ae55df2ee7fc","html_url":"https://github.com/emilRacz21/oddity-emporium-react","commit_stats":null,"previous_names":["emilracz21/oddity-emporium-react"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emilRacz21/oddity-emporium-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilRacz21%2Foddity-emporium-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilRacz21%2Foddity-emporium-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilRacz21%2Foddity-emporium-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilRacz21%2Foddity-emporium-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emilRacz21","download_url":"https://codeload.github.com/emilRacz21/oddity-emporium-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilRacz21%2Foddity-emporium-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31504897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["backend","css","db","frontend","get-post-put-delete-methods","html","javascript","mongodb","mongodb-atlas","nodejs","react","restfull-api","sass","scss","usecontext","useeffect","usestate"],"created_at":"2024-11-11T04:20:37.338Z","updated_at":"2026-04-07T07:41:22.365Z","avatar_url":"https://github.com/emilRacz21.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oddity Emporium\n\nOddity Emporium is a web application that allows users to browse, add, and review inventions. It features a React-based front-end that communicates with a Node.js backend using MongoDB for data storage. Users can add new inventions, upload images, leave reviews, and interact with the product catalog.\n\n## Features\n\n- **Browse Products** – View inventions in the shop and their details.\n- **Add Inventions** – Logged-in users can add new products, upload images, and provide details such as price, weight, and description.\n- **Reviews** – Users can leave reviews and ratings on products they have purchased.\n- **Admin Panel** – Admins can manage product listings and reviews.\n\n## Tech Stack\n\n### Frontend:\n- **React** – JavaScript library for building the user interface.\n- **React Router** – For client-side routing.\n- **SCSS** – CSS preprocessor for styling.\n- **Axios** – For making API requests.\n\n### Backend:\n- **Node.js \u0026 Express** – For creating the REST API.\n- **MongoDB** – For storing product data, reviews, and user information.\n- **Multer** – For handling file uploads (product images).\n- **CORS** – To handle cross-origin resource sharing.\n\n## Live Demo\n\nYou can access the live demo [here](https://oddityshop.netlify.app/).\n\n## Installation\n\n## Backend (Node.js Server with MongoDB)\n\n1. Download API:\n   ```bash\n    https://gofile.io/d/hjFMS0\n2. Navigate to the project directory:\n   ```bash\n   cd oddity-emporium\n3. Install dependencies for the backend:\n   ```bash\n   npm install\n4. Setup environment variables:\n   * Create a .env file in the root of your project.\n   * Add the MongoDB connection string to .env:\n     ```bash\n     MONGO_URI=mongodb+srv://\u003cusername\u003e:\u003cpassword\u003e@cluster0.mongodb.net/oddity-emporium\n5. Run the server:\n   ```bash\n   node server.js\nThe server will start on the specified port (PORT), and you'll be able to access the API on http://localhost:3000.\n\n## Frontend (React Application)\n\n1. Navigate to the frontend directory:\n    ```bash\n    cd frontend\n2. Install dependencies for the frontend:\n   ```bash\n    npm install\n3. Run the React application:\n   ```bash\n    npm run dev\n\n## Backend Details (Node.js with MongoDB)\n\nThe backend is built using Node.js and Express and connects to MongoDB for storing and managing inventions, reviews, and other related data.\n\nEndpoints:\n* GET /inventions – Get all inventions.\n* POST /inventions – Add a new invention (requires image upload).\n* POST /inventions/:id/reviews – Add a review for an invention.\n* PUT /inventions/:id – Update an invention.\n* DELETE /inventions/:id – Delete an invention.\n\nMongoDB Schema:\n* Invention – Represents the invention data including name, description, price, weight, reviews, etc.\n* Review – Represents the review data including reviewer name, rating, and comment.\n\n## Setting up MongoDB\n\nThe backend is connected to MongoDB via Mongoose, and you'll need a MongoDB Atlas account to set up your own database. Follow these steps to configure MongoDB:\n\n1. Create an Atlas Account: Sign up at MongoDB Atlas.\n2. Create a Cluster: Follow the steps in the Atlas dashboard to create a new cluster.\n3. Get the Connection String: From your cluster's dashboard, click on \"Connect\" and select \"Connect your application\". Copy the connection string.\n4. Update .env file: Replace the \u003cusername\u003e, \u003cpassword\u003e, and \u003cdbname\u003e in the connection string with your actual MongoDB credentials and database name.\n\n## Design\n\n![shop](https://github.com/user-attachments/assets/6f469a53-4a81-4cb0-b093-2470326a67b2)\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilracz21%2Foddity-emporium-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femilracz21%2Foddity-emporium-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilracz21%2Foddity-emporium-react/lists"}