Skip to content

jackchuong/bworks_2.0_deploy

 
 

Repository files navigation

Install & run dev

git clone https://github.com/saigonbitmaster/bworks_2.0
add local host dns record /etc/hosts: 127.0.0.1  bworks.bworks.app

cd bworks_2.0
add .env file for frontend Apps:
REACT_APP_LOGIN_URL=http://localhost:3000/auth/login
REACT_APP_API_URL=http://localhost:3000


add .env file for backend API:
#Mongo
DATABASE_HOST=localhost
DATABASE_PORT=27017
DATABASE_ACCOUNT=admin
DATABASE_PASSWORD=****
#Blockfrost
BLOCKFROST_PROJECT_ID=****
BLOCKFROST_URL=https://cardano-testnet.blockfrost.io/api/v0
#GitHub
GITHUB_TOKEN=****

cd bworks_2.0
yarn
yarn build-lib
yarn api
yarn cms
yarn web

Build & run app

git clone https://github.com/saigonbitmaster/bworks_2.0
cd bworks_2.0
export NODE_OPTIONS="--max-old-space-size=8192"
yarn
yarn build-lib
yarn build-api
yarn build-cms
yarn build-web


URLs

https://bworks.app/web/#/ -> web app
https://bworks.app/cms/#/ -> cms app
https://bworks.app/api    -> api


Build docker images

build API image
build Nginx image
build certBot image
build mongo image
build redis image


change the API urls for frontend

modify .env file variables reflect the login and API urls.

About

Dev repo of funded by Cardano Catalyst https://bworks.app project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.4%
  • Shell 1.8%
  • Other 0.8%