Skip to content

tariqs26/yelpcamp-client

Repository files navigation

YelpCamp

Full-stack application, where users can share and review campground locations built with the MERN stack.

home

main

show

Technologies Used

Frontend

Technology Purpose
React Frontend framework
React Router Routing
React Query Data fetching and caching
React-Bootstrap UI components and styling
Mapbox Map API
Vite Frontend build tool
Technology Purpose
Express Web framework
MongoDB Database
Mongoose ODM
Passport Authentication
Swagger API documentation

Setup

Install dependencies

npm i

Configure environment variables

VITE_API_URL=      # Backend API URL
VITE_MAPBOX_TOKEN= # Mapbox API token

Available Scripts

Script Description
npm run dev Run the app in the development mode (http://localhost:3001)
npm run lint Lint the app
npm run format Format the app
npm run build Build the app for production
npm run preview Preview the production build