This is an example project that demonstrates how to make a call to TheBrain's API to create a thought. It uses the Next.js framework with React. Follow the instructions below to get set up.
-
If you don’t have Node.js installed, install it from here.
-
Clone this repository
-
Navigate into the project directory
$ cd thebrain-api-quickstart-node
-
Install the requirements
$ npm install
-
Make a copy of the example environment variables file
$ cp .env.example .env.local
-
Add your API key to the newly created
.env.local
file -
Run the app
$ npm run dev
You should now be able to access the app at http://localhost:3000.