Skip to content

kinode-dao/kinode-site

Repository files navigation

Kinode Website

Setup

First-time setup

npm i -g yarn 
yarn 
yarn global add serve 

Create DBs

node createTestDb.js
node createDb.js

Create .env file

echo "SECRET_KEY=\"$(openssl rand -base64 32)\"" > .env

Set up Caddy

cp Caddyfile.template /etc/caddy/Caddyfile

Develop

# 1. Start the server
    node server
# 2. Start the frontend
    # in a new session
    yarn start

Deploy

# 0. Test the server
    npx jest
# 1. Do it again. Just to be sure.
    npx jest
# 2. IF tests pass, deploy server 
    git pull
    yarn build
    NODE_ENV=production node server.js # the server (podcast and blog auth)
# 3. Deploy frontend
    # in a new session
    serve -s ./build
    # for future updates and deployments, build it in a different session and then swap the server
    # (this is to avoid downtime)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published