https://github.com/ayush-1315/shoonya-life-assignment
A responsive web page for a fictional wellness retreat platform.
https://github.com/ayush-1315/shoonya-life-assignment
axios reactjs reactrouterdom usecontext-hook usereducer-hooks web-developement
Last synced: 3 months ago
JSON representation
A responsive web page for a fictional wellness retreat platform.
- Host: GitHub
- URL: https://github.com/ayush-1315/shoonya-life-assignment
- Owner: Ayush-1315
- Created: 2024-07-24T23:38:11.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-07-26T15:10:04.000Z (11 months ago)
- Last Synced: 2024-07-26T16:44:10.444Z (11 months ago)
- Topics: axios, reactjs, reactrouterdom, usecontext-hook, usereducer-hooks, web-developement
- Language: JavaScript
- Homepage: https://master--shoonya-assignment.netlify.app/
- Size: 518 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wellness Retreats
A responsive web page for a fictional wellness retreat platform. The page displays a list of available retreats, allowing users to filter them by date and type.
## Features
- Single-page application using React
- Responsive design for both desktop and mobile devices
- Display list of retreats with details: Image, Title, Description, Date, Location, and Price
- Filter retreats by date and type
- Search retreats by title
- Pagination for browsing retreats## Mock Data
The application uses mock data for demonstration purposes. (https://669f704cb132e2c136fdd9a0.mockapi.io/api/v1/retreats).
## APIs
- **Individual retreat data**: `https://669f704cb132e2c136fdd9a0.mockapi.io/api/v1/retreats/{id}`
- **Filter retreats by type**: `https://669f704cb132e2c136fdd9a0.mockapi.io/api/v1/retreats?tag=meditation&page=1&limit=3`
- **Filter retreats by location and type**: `https://669f704cb132e2c136fdd9a0.mockapi.io/api/v1/retreats?tag=meditation&location=$Pune&page=$1&limit=3`
- **Search retreats by title**: `https://669f704cb132e2c136fdd9a0.mockapi.io/api/v1/retreats?search=Yoga&page=$1&limit=3`
- **Pagination**: `https://669f704cb132e2c136fdd9a0.mockapi.io/api/v1/retreats?page=1&limit=3`## Installation
1. **Clone the repository**:
```sh
git clone https://github.com/Ayush-1315/shoonya-life-assignment.git
cd wellness-retreats2. **Install dependencies**:
```sh
npm install3. **Start development Server**:
```sh
npm start