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.
- Do not use this in production
Last updated: 04 July 2024
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!
← README.md
: That’s this file, where you can tell people what your cool website does and how you built it.
← public/index.html
: Holds the web application.
← 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.
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 is a friendly community where millions of people come together to build web apps and websites.
- Need more help? Check out our Help Center for answers to any common questions.
- Ready to make it official? Become a paid Glitch member to boost your app with private sharing, more storage and memory, domains and more.