Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

thinc-org/Cu-Blood-FrontEnd

Repository files navigation

CU Blood FrontEnd

Starting Development Server

yarn start:prod

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

Run production mode

yarn install
yarn gencss
yarn next:build
yarn start

Need pm2 to always run the node
and nginx to reverse proxy to port 80

There is a login bug when login from localhost

Since this is only appear in localhost, there will not be a fix for this.

  • we have provided manual login for localhost use by the following steps:
  1. login from http://next.fives.cloud and copy cookie named "connect.sid" which has value familair to the image

image

  1. open localhost:3000 and use browser's dev tool to create new cookie named "connect.sid" with the same value copied from the previous step.

image

  1. refreshthe web. you will be now logged in.

image

Directory Referencing

Symbol Directory Example Usage
@ ./components import FacebookCard from '@/shared-components/FacebookCard'

Available deployment sites

https://new5558.surge.sh << old build before migrate from static site to express rendering.
https://cu-blood.herokuapp.com << master branch CI/CD NO DOCKER.
https://poom-cublood.herokuapp.com << poom branch CI/CD NO DOCKER.
http://next.fives.cloud << production branch (same as master but less frequent update)(digital ocean 5$ droplet) NO CD ONLY MANUAL DEPLOY.