Skip to content

chmanogna1997/Campus_Market_-MERN-STACK-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Campus_Market

This website is to help international students to plan their stay around their university. check for available houses around the campus, buy and sell reused household items, books, electronics etc..

How we developed

Here we developed this application using React.JS for frontend, Node.js for backend services, Mongodb atlas and firebase storage for saving and retreving the data.

Versions:

  1. "react": 18.0.0
  2. "npm" : 8.1.2
  3. "node" : 16.13.2

Components

  1. Header
  2. SignIn_login - User can either Signin or Login here
  3. Tips To Sell - User can sell their items here
  4. Homepage - This about me page of the website
  5. Display Products - This is opening page of the website that displays the list of products on selected category( like tab) 3
  6. Show Product Details - This page shows details of the product
  7. User Profile - user can see his profile, products he bookmarked, produts he posted to sell
  8. Spinner
  9. Footer

Mongodb Atlas

Used Mongodb database named Campus Market having following collections:

  1. User_details
  2. books
  3. events
  4. foodmarket
  5. for rent : houses & apartments
  6. household items
  7. mobile & electronics.

Firebase Storage

Used to store and retieve images

Regarding the website.

  1. HomePage:

Homepage

  1. SigninPage:

sign inimage

On siginin the data gets added to user_details collections as shown here: data_in_userdetails_image
  1. Login Page :
Error message for invalid credentials:

inavlid_login_user_image

  1. Reset Password :

reset_pwd

Password gets updated accordingly in user_detail collection:

image

  1. On suceesful login user can check their profile on clicking Account button:

account

  1. User can sell/post their product : on clicking sell button on header:

sell_prd

On success message : data gets added to corresponding collection(category) and image to firebase storage.

image

Same produt posted can be seen on products page:

image

Each post has product name, product price, University, Email adrees of the user posted the item.
  1. User profile page:

image

  1. The website helps users to find products around their university using the global search bar.

2

  1. User can like/bookmark the products he wished to.

4

Business Rules

  1. User needs to login to bookmark/ like any product
  2. User should be a registered member to sell his product on the site.
  3. User while selling his product must upload images of product but not more than 5. TTS

Accessibility

  1. aria-hidden, aria-expanded, aria-labelled-by, aria-controls - for Accordions in TipsToSell component.
  2. aria-checked, arai-labelled-by - for checkbox in SignIn_login component.
  3. aria-roledescription,aria-label - for carousel in Homepage component.

Default login :

you will be able to login with these default credentials too or you can signin and login to the website.

Email: 'j1@gmail.com' Password: 'j1'


Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can't go back!

If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published