Siliconrob / ownerrez-mapbox-hapijs

Glitch based app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello and welcome to using Hapijs with the OwnerRez API!

This project includes a Node.js server script

  • Make sure to set all your .env variables, this example uses personal tokens
  • Node.js is a popular runtime that lets you run server-side JavaScript.
  • You will need to generate a free MapBox gljs API key MapBox.
  • You should probably get a free HERE free geocode API Key (limit 1000 API calls per day) HERE.
  • This project uses the Hapijs framework (I hope it makes you as happy as it does for me to use ๐Ÿ˜) and explores basic routes on the OwnerRez API.
  • Do not use this in production

Last updated: 31 Dec 2023

Prerequisites

You'll get best use out of this project if you're familiar with basic JavaScript. If you've written JavaScript for client-side web pages this is a little different because it uses server-side JS, but the syntax is the same!

What's in this project?

โ† README.md: Thatโ€™s this file, where you can tell people what your cool website does and how you built it.

โ† public/map.html: Holds the display map rendering.

โ† public/style.css: The styling rules for the pages in your site.

โ† index.js: The Node.js server script for your new site. The JavaScript defines the endpoints in the site back-end, one to return the homepage and one to update with the submitted color. Each one sends data to a Handlebars template which builds these parameter values into the web page the visitor sees.

โ† package.json: The NPM packages for your project's dependencies.

โ† routes/: This folder holds all the predefined Swagger entry points for hapijs to communicate with the OwnerRez API.

โ† src/: This folder holds general server side helper files for working with hapijs.

Try this next ๐Ÿ—๏ธ

Take a look in TODO.md for next steps you can try out in your new site!

Want a minimal version of this project to build your own Node.js app? Check out Blank Node!

Glitch

You built this with Glitch!

Glitch is a friendly community where millions of people come together to build web apps and websites.

About

Glitch based app

License:MIT License


Languages

Language:HTML 51.3%Language:JavaScript 46.5%Language:Dockerfile 2.2%