- Email: [email protected]
- Password: authenticated
- React, Next.js: Making server-side-rendering (SSR) with React possible.
- Node.js, Express.js: Develop backend using Javascript.
- MongoDB, mongoose: Non-relational database.
- GraphQL, Apollo: Only delivers what client needs.
- SASS: "CSS with superpowers".
- Okta: Third party authentication intergation.
- GIPHY, DiceBear Avatars: External APIs that supply the contents.
- A clone of this repo.
- Node.js and NPM installed.
- A running mongoDB server to connect to.
- Okta setup.
- GIPHY API key.
Create a file named .env
at the root folder. Copy the following keys and fill in the [..values]
:
# 'development' or 'production'
NODE_ENV=[..environment]
# MongoDB server
DBURL=[..MongoDB server url]
API_KEY=[..GIPHY API key]
# OKTA setup
session_secret=[..secret string]
OIDC_appBaseUrl=[..]
OIDC_issuer=[..]
OIDC_client_id=[..]
OIDC_client_secret=[..]
OIDC_redirect_uri=[..]
- npm run dev: Start the app in development mode. Make sure
NODE_ENV
in.env
isdevelopment
. - npm run build then npm run start: Build the pages and start the app in production mode. Make sure
NODE_ENV
in.env
isproduction
.