Create a simple page to search for apartments.
# 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.
# runs all tests
$ yarn test
# 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.
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.