This repository demonstrates how to use Back4app (with PostgreSQL) to build a simple Next.js app.
To learn more check out the article.
-
Install the dependencies via NPM.
$ npm install
-
Create the .env.local environmental variables file:
NEXT_PUBLIC_PARSE_APPLICATION_ID=<parse_app_id> NEXT_PUBLIC_PARSE_JAVASCRIPT_KEY=<parse_javascript_key>
Make sure to replace
<parse_app_id>
and<parse_javascript_key>
with your actual ID and key. To obtain your credentials navigate to your Back4app app and select "App Settings > Security & Keys" in the sidebar. -
Run the Next development server.
$ npm run dev
-
Open http://localhost:3000 in your favorite web browser.
To learn how to deploy the frontend to CaaS check out this article.