https://github.com/getdutchie/dutchie-plus-nextjs-example
This Next.js app demonstrates how to use Dutchie Plus in a fully-functional website.
https://github.com/getdutchie/dutchie-plus-nextjs-example
Last synced: 9 months ago
JSON representation
This Next.js app demonstrates how to use Dutchie Plus in a fully-functional website.
- Host: GitHub
- URL: https://github.com/getdutchie/dutchie-plus-nextjs-example
- Owner: GetDutchie
- License: agpl-3.0
- Created: 2021-01-21T00:20:57.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-08-30T21:58:38.000Z (almost 3 years ago)
- Last Synced: 2025-03-27T23:04:17.274Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://northcannabisco.com/
- Size: 5.85 MB
- Stars: 16
- Watchers: 46
- Forks: 7
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Dutchie Plus Next.js Example
This Next.js app demonstrates how to use Dutchie Plus in a fully-functional website.
## Prerequisites
- Node.js >=12.16.3
- Yarn
## Installation
Copy the `.env.example` file to a `.env.local` file and adjust the values to match your environment.
In this project's directory run:
```shell
yarn install
```
### SSL Certificates for localhost
SSL certificates are required for development. Using [mkcert](https://github.com/FiloSottile/mkcert) simplifies the setup. In this project's directory run:
```shell
brew install mkcert
brew install nss # if you use Firefox
mkcert -install
mkcert localhost
```
This will install a root CA cert in an OS library directory, and a cert/key for localhost in this project's directory. If you're using MacOS, you're done. If you're using another OS, set the `ROOT_CA_PATH` environment variable in `.env.local` to the path where mkcert installed the Root CA Certificate.
## Start Application
To start the development server, in this project's directory run:
```shell
yarn dev
```
Go to [https://localhost:9999](https://localhost:9999) in a web browser. Replace 9999 with the `PORT` value in your `.env.local` file if you are using a different value.