This is the website for our personal wedding. This site serves as a digital wedding invitation. Users can give a response, if they are participating on the wedding.
These environment variables configure your setup:
Name | Description | Required | Example / Default |
---|---|---|---|
MONGODB_URL |
The connection to the database | yes | mongodb://<username>:<password>@<host>:<port>/<database> |
PUBLIC_GOOGLE_MAPS_API_KEY |
A Google Maps API Key from Google Cloud to display a map of the wedding location | no | SDLKFALSFJKSJGAshAHaYeSMKWvrekl2MERK342 |
ADMIN_LOGIN |
The credendials of the Admin panel. IT IS STRONGLY ADVISED TO CHANGE THIS SETTING | no, but strongly recommended | admin:admin |
PUBLIC_TRACKING_SCRIPT |
You can get some privacy-friendly analytics by using Plausible or Umami. Just copy the <script>...</script> from the Tracking Provider and encode it with encodeURIComponent() |
no | %3Cscript%20src%3D%22https... |
The environment variable MONGODB_URL
is needed to start the container.
docker run -d -p 3000:3000 -e MONGODB_URL=<mongodb-url> -e ADMIN_LOGIN=<admin-login> ghcr.io/sharknoon/wedding
When starting the app with docker compose
, all environment variables are optional.
ADMIN_LOGIN=<admin-login> docker compose up
Once you've cloned this project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.