Skip to content

PollsAPI/yo-polls

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

🤟 Yo! Polls

Demo polls application created using PollsAPI built on NextJS

Deploy on Vercel (1-Click Deploy)

Deploy with Vercel

Getting Started

Project uses Environment variable - API_KEY To add it please add .env.local file at the root level and add following

API_KEY=<API Key from PollsAPI>

Getting the PollsAPI Key

This application is built using PollsAPI so to start off with it you would need to get the API Key for PollsAPI

PollsAPI has a Free tier which you can use to get started.

  1. Login to PollsAPI - https://www.pollsapi.com/login
  2. Once logged in grab your API Key from the Dashboard
  3. Add the key as an Environment Variable by creating a .env.local file at the root level.

Site Config

For SEO and link sharing, you can configure your Site's URL, Title, Description & Image attributes. You can configure the SEO by updating the file - site.config.js.

Development

Once setup with the repo locally and having the .env.local file added, you are all set to go ahead with our local setup.

Run:

# yarn
$ yarn
$ yarn dev

# npm
$ npm install
$ npm run dev

This is install all the dependencies and start a local development server running on port 3000 so you can access it on https://localhost:3000

Debug

Since NextJS enables the SSR debugging is really easy. Stop your server, if already running, and then start it by

# yarn
$ yarn debug

# npm
$ npm run debug

This will run the server with debugging available on port 9570

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

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

SEO

For SEO, we have used next-seo and created a basic config for SEO. Learn more about how to config next-seo - https://github.com/garmeeh/next-seo#usage

Learn More about NextJS

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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

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

About

Sample application from PollsAPI demonstrating a basic use case of creating a Polls Application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published