Skip to content

Starting platform for a Next.js project that pulls data from an external API and caches the result. (includes responsive TSX template with Bootstrap 5)

License

Notifications You must be signed in to change notification settings

pyrrolizin/nextjs-api-request

Repository files navigation

Welcome to Nextjs-api-request 👋

Version License: MIT

This is a Next.js project bootstrapped with create-next-app.

This project is a starting platform for a Next.js project that pulls data from an external API and caches the result. The project includes a responsive Bootstrap 5 template.

The Project uses yarn zero install (Plug'n'Play)

✨ Demo (OpenWeatherMap-Api - Current weather in Stuttgart, Germany)

tbd

screenshot of the demo application

Prerequisit

  • Node.js >= 16
  • Yarn > 3

Install

Yarn installs the suitable swc binary for @next/swc.

yarn

Environment varaibles

You can set the following environment variables:

NAME required Comment
API_KEY yes You can get your own free OpenWeatherApi key on this website: https://home.openweathermap.org/users/sign_up

You can either set the environment variables or use the .env.local file: Make your own copy of the .env.local file and specify the .env.local and add the keys.

cp ./.env.local_default ./.env.local

Learn more about the OpenWeatherMap API: https://openweathermap.org/api

Getting Started

First, run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out the Next.js deployment documentation for more details.

About

Starting platform for a Next.js project that pulls data from an external API and caches the result. (includes responsive TSX template with Bootstrap 5)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published