https://github.com/localjo/campsite-example
A simple demo app that shows the features of a camp site.
https://github.com/localjo/campsite-example
Last synced: 2 months ago
JSON representation
A simple demo app that shows the features of a camp site.
- Host: GitHub
- URL: https://github.com/localjo/campsite-example
- Owner: localjo
- Created: 2018-04-09T17:45:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-10T14:17:04.000Z (over 5 years ago)
- Last Synced: 2025-01-06T04:28:48.443Z (4 months ago)
- Language: CSS
- Homepage: http://iamlocaljo.com/campsite-example/
- Size: 2.89 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Campsite Sample App
A simple demo app that shows the features of a camp site, built for an interview with a hospitality company.
The instructions were to build a camp site listing page and use `/src/mocks/features1.json` as if it were returned by an API and use it to build a `
- ` list that visually shows whether or not a campground has each feature. And clicking on a feature should expand the list to show subfeatures. Changes to `/src/mocks/features1.json` are automatically reflected in the app.
I also added a button that simulates showing the next campsite by pulling data from `/src/mocks/features2.json`. I also added some unit tests to this demo.
## Installation
```
git clone [email protected]:localjo/campsite-example.git
cd campsite-example
npm install
```
## Usage
Start the app locally and open it in a browser
```
npm start
```
## Tests
Run tests in watch mode
```
npm test
```
Run test coverage report
```
npm run coverage
```