Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

dekk-app/homepage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

app

Project Setup

  1. Install Yarn v1
  2. Install nvm
  3. Clone this repository
  4. Create a Github Token
  5. Create a .npmrc file file
  6. Create a .env file
  7. Create a sentry.properties file

Github Token

Visit the Github Token page and create a new token. Give access to read:packages.

Github Token

NPMRC

Copy the .npmrc.example and rename it to .npmrc (ignored in git). Replace GITHUB_TOKEN with your newly created token.

The .npmrc file is required to allow access to private GitHub packages.

ENV

Copy the .env.example and rename it to .env (ignored in git). Add your values to the new file.

Sentry

Copy the sentry.properties.example and rename it to sentry.properties (ignored in git). Add your values to the new file.

The .env file is required to allow access to different services.

Install packages

Make sure to call nvm use before proceeding. (Check nvm's docs on deeper shell integration to learn how to call nvm use automatically) Alternatively you can check the .nvmrc file and ensure that you're using the correct node version.

cd path/to/dekk/app
nvm use
yarn install

Develop

To start developing start the next.js development script and open http://localhost:3000

yarn dev

Develop with SSL

  • Create a SSL certificate by executing the following command on the CLI in the project root which will generate a folder ssl with two files:
mkdir ssl && openssl req -x509 -out ssl/localhost.crt -keyout ssl/localhost.key \
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
  • Start the dev-server: yarn dev:ssl

Releases

No releases published

Packages

No packages published