/kasaz2

Kasaz code challenge 2nd try

Primary LanguageVue

Logo Title

kasaz map viewer

Create a simple page to search for apartments.

Build Setup

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
# NODE_ENV=development
$ yarn dev

# build for production and launch server
# NODE_ENV=production
$ yarn build
$ yarn start

# generate static project
$ yarn generate

For detailed explanation on how things work, check out Nuxt.js docs.

Tests

# runs all tests
$ yarn test

Google Maps

# copy sample env file
cp env_sample .env
nano .env

Enter your Google Maps api key and save the file. It's necessary to restart the Sandbox if you use codesandbox.io.

Data Source

Depending on your NODE_ENV environment variable, the data for development comes from the file /static/response.json, and in any other case it will fetch the API endpoint https://www.kasaz.com/api/v1/search/update_map_results.

In development mode the dataset contains data from Barcelona only.