app
Project Setup
- Install Yarn v1
- Install nvm
- Clone this repository
- Create a Github Token
- Create a .npmrc file file
- Create a .env file
- Create a sentry.properties file
Github Token
Visit the Github Token page and create a new token.
Give access to read:packages
.
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