This is a minimal example of running the Superagent Javascript SDK with NextJS.
First, install the dependencies:
npm i
Secondly, rename .env.example
to .env
and add your environment variables.
Lastly, start the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
To learn more about Superagent, take a look at the following resources:
- superagent.sh - sign up for a Superagent account.
- Superagent Github repo - checkout superagent on Github.
- Superagent JS SDK - read more about the JS SDK.
- Documentation - read our docs.