haelmj / fest-workshop-next

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

next-demo

This is a demo on how to utilise API routes in Nextjs applications. This demo was delivered during the CBF fest as part of a technical workshop on "Securing Secret Keys in Frontend Applications"

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

Prerequisites:

  • Ensure the following are installed:
    • Node
  • Sign up to the API service here
  • Access your API keys here

Setting Up

  1. Clone this repository: git clone https://github.com/haelmj/fest-workshop-next.git

  2. Using a code editor, rename the .env.example file to .env and replace the text on the right side of the equal sign with your API Key.

  3. Install the dependencies: npm install

  4. Run the development server:

npm run dev
# or
yarn dev

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.

About


Languages

Language:JavaScript 50.3%Language:CSS 49.2%Language:Shell 0.5%