Skip to content

Blogchain's web application, decentralised discourse and publishing on web3.

License

Notifications You must be signed in to change notification settings

capsulesocial/capsule-vue

Repository files navigation

Capsule-Vue

Capsule-Vue is the Front-End powering Capsule Social's platform interface.

Requirements

  • NodeJS v14.5.0 or higher.

Getting started

.env Setup

CONTRACT_NAME=dev-1657702549987-47675900699610
DOMAIN=http://localhost:3000

# ORBIT_URL=https://test-node.capsule.social/orbit
# ORBIT_URL=http://localhost:3001
# CAPSULE_SERVER=http://localhost:3500
CAPSULE_SERVER=https://alpha.capsule.social/server
ORBIT_URL=https://alpha.capsule.social/orbit

# Google
TORUS_GOOGLE_VERIFIER="capsule-social-google-tester"
TORUS_GOOGLE_CLIENTID="653379121360-j8t9ua763vfvd86d1qjguonhrgqvkigo.apps.googleusercontent.com"

# Discord
TORUS_DISCORD_VERIFIER="capsule-social-test-v2-discord"
TORUS_DISCORD_CLIENTID="906210984396468275"

Deploy Web App

# install dependencies
$ `yarn install`

# Server with hot reload on http://localhost:3000
$ `yarn web`

# Production build
$ yarn build:web

# Launch production Server
$ yarn start

Deploy an Electron App (Mac/Windows)

# install dependencies
$ `yarn install`

# Server with hot reload on Electron App
$ `yarn dev`

# Production build of electron app, delivered to /dist
# MacOS
$ yarn build:mac

# Windows
$ yarn build:win

Folder Structure

  • /build - stores icon and additional scripts for Electron builder
  • /mainprocess - includes JS for Electron main process
  • /src - includes Nuxt.js project

Dependencies/Packages:

For detailed explanation on how to setup your development environment, check out Setting up Capsule-Vue/Capsule-Orbit.