A React application where users can share their opinions and vote on them. Built with React, Vite, and uses a JSON-server backend for data persistence.
- Create and share opinions
- Upvote and downvote opinions
- Real-time sorting based on votes
- Simple and intuitive interface
- Node.js (v14 or higher)
- npm
-
Clone the repository
-
Install frontend dependencies
npm install- Install backend dependencies
cd backend
npm install
cd ..- Start the backend server
cd backend
npm startThis will start the JSON server on http://localhost:3000
- In a new terminal, start the frontend development server
npm run devThis will start the Vite development server on http://localhost:5173
frontend/: React application built with Vitesrc/components/: React componentssrc/store/: Context providers and state management
backend/: JSON-server implementationdb.json: Database fileapp.js: Server configuration
- React
- Vite
- JSON-server
- React Context API
- CSS