A simple and quick but interesting implementation of the backend.
This Frontend leverages NextJs and SSR for top-level await when fetching data. It is built with Tailwind CSS to quick development and incorporates Framer Motion along with Lottie to produce aesthetic and appealing animations and micro-interactions without too much effort.
It interfaces with the backend using native fetch requests for simplicity.
Limited to only using a single route as per the requirements, I leveraged passing data from the client LocationInput component to the root server component by utilizing the searchParam prop to trigger a re-render of the app.
The backend for this repository can be found here
Ensure you have the Backend running locally for this client to make API calls.
Follow the instructions to setup the backend here:
-
Clone the Repository:
$ git clone https://www.github.com/ejkorol/graphql-weather-client && cd graphql-weather-client
-
Install dependencies:
$ npm install
-
Transfer
.env.sample
variables into.env
:$ touch .env && cat .env.sample > .env
-
Spin up the dev server:
$ npm run dev
Author: Jason Korol