kontext-app / social-bookmarking-app

https://app.kontext.app
2 stars 0 forks source link

Social Bookmarking App

Getting Started

Prerequisites

Install

git clone git@github.com:kontext-app/social-bookmarking-app.git
cd social-bookmarking-app
yarn

Set Environmental Variables

Copy the distributed .env into a local env file with the name .env.local and set the variables accordingly.

Local Development

You can run your own local ceramic node and 3id-connect iframe service. Therefore run following steps:

  1. Globally install the ceramic cli and start local ceramic node
> yarn global add @ceramicnetwork/cli
> ceramic daemon
  1. Clone 3id-connect repo in your preferred folder and start locally
> git clone https://github.com/ceramicstudio/3id-connect.git
> cd 3id-connect
> npm install
> CERAMIC_API=http://localhost:7007 npm run start
  1. Set relevant env variables in .env.local
REACT_APP_CERAMIC_API_HOST=http://localhost:7007
REACT_APP_THREE_ID_CONNECT_HOST=http://localhost:30001

Kontext Servers

You can also use servers provided by us. Therefore set the relevant env variables as follows:

REACT_APP_CERAMIC_API_HOST=https://ceramic.kontext.app
REACT_APP_THREE_ID_CONNECT_HOST=https://3id.kontext.app

Start Development Server

yarn start

Build Production Bundle

yarn build