Created with NextJS, TailwindCSS and Typescript. It gathers data from theNational Weather Service APIand theUS Census geocoder.
Check the demo hosted in Vercel.
This is aNext.jsproject bootstrapped withcreate-next-app
.
First add the HOST env variable and then run the development server:
npm run dev
#or
yarn dev
#or
pnpm dev
Openhttp://localhost:3000with your browser to see the result.
You can start editing the page by modifyingpages/index.tsx
.The page auto-updates as you edit the file.
API routescan be accessed onhttp://localhost:3000/api/hello.This endpoint can be edited inpages/api/hello.ts
.
Thepages/api
directory is mapped to/api/*
.Files in this directory are treated asAPI routesinstead of React pages.
This project usesnext/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation- learn about Next.js features and API.
- Learn Next.js- an interactive Next.js tutorial.
You can check outthe Next.js GitHub repository- your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use theVercel Platformfrom the creators of Next.js.
Check out ourNext.js deployment documentationfor more details.