cp .env.example app/.env.local- Open the newly created
.env.localfile in theappfolder:- Set
COUCHDB_USERto your preferred admin user name. - Set
COUCHDB_PASSWORDto a secure admin password.
- Set
- Terminal 1
npm run db:up
- Terminal 2
npm run bootstrapcd appnpm run dev
- Open http://localhost:3000/
- In Terminal 2
- Hit
ctrl+cto stop the Next.js app. - Run
cd ../ && npm run db:downto stop the CouchDB.
- Hit
An API reference for the backend API routes can be found at https://docs.page/thorwebdev/couchdb-marketplace-demo