In development!
This example shows how to use Tailwind CSS (v3.0) with Next.js and how to consume the api PokeApi using ssr
The central idea of this project is to build a front-end in Next.js/Tailwindcss for the consumption of an API. For this, PokéApi v2 was chosen.
You need Node Js installed on your machine.
#clone this repository
$ git clone https://github.com/smartinsdev/next-poke.git
#Open the next-api folder and in the terminal run the command:
$ cd next-poke
$ npm install
#Then let the application "run" using the command below:
$ npm run dev
#The application will be opened on port:3000 - go to http://localhost:3000.
- Since the application is beginner level, it is simple, but it is geared towards using some basic concepts for consuming an API in Next. For example, the use of
getServerSideProps
.
The application was developed according to the tutorial: