An open API service indexing awesome lists of open source software.

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.

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
    ```