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

https://github.com/alfredosalzillo/test-where-are-you-going


https://github.com/alfredosalzillo/test-where-are-you-going

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# test-where-are-you-going

This repository contains the solution to a test.
The required PickupLocation component is developed using React with hooks.

## Installation

You need to have [nodejs](https://nodejs.org/it/) and npm installed.

Clone the repository
```bash
git clone https://github.com/alfredosalzillo/test-are-you-going
```
or download and unzip it.

install dependencies with npm
```bash
cd test-where-are-you-going
npm install
```

## Run
To start the application and test the component run
```bash
npm run start
```
and go to [http://localhost:3000/](http://localhost:3000/).

Or try the component inside [storybook](https://github.com/storybooks/storybook)
```bash
npm run storybook
```
and go to [http://localhost:9009](http://localhost:9009/?selectedKind=PickupLocation&selectedStory=simple&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel).

## Tests
To run tests
```bash
npm run test
```

## Style guide
The [airbnb javascript](https://github.com/airbnb/javascript) style guide is used in this project.