https://github.com/thorwebdev/couchdb-marketplace-demo
A CouchDB marketplace demo
https://github.com/thorwebdev/couchdb-marketplace-demo
Last synced: 8 months ago
JSON representation
A CouchDB marketplace demo
- Host: GitHub
- URL: https://github.com/thorwebdev/couchdb-marketplace-demo
- Owner: thorwebdev
- Created: 2021-08-09T14:59:34.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-09T16:15:57.000Z (almost 5 years ago)
- Last Synced: 2025-03-26T02:52:00.375Z (about 1 year ago)
- Language: JavaScript
- Size: 252 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CouchDB marketplace demo
## Requirements
- [Docker](https://docs.docker.com/get-docker/)
- [Node](https://nodejs.org/en/download/) >= v12.x.x
## Setup
### Set up env vars
- `cp .env.example app/.env.local`
- Open the newly created `.env.local` file in the `app` folder:
- Set `COUCHDB_USER` to your preferred admin user name.
- Set `COUCHDB_PASSWORD` to a secure admin password.
### Install dependencies and run the app
- Terminal 1
- `npm run db:up`
- Terminal 2
- `npm run bootstrap`
- `cd app`
- `npm run dev`
- Open http://localhost:3000/
### Stop the application
- In Terminal 2
- Hit `ctrl` + `c` to stop the Next.js app.
- Run `cd ../ && npm run db:down` to stop the CouchDB.
## API reference
An API reference for the backend API routes can be found at https://docs.page/thorwebdev/couchdb-marketplace-demo