Skip to content

Latest commit

 

History

History
116 lines (73 loc) · 2.31 KB

README.md

File metadata and controls

116 lines (73 loc) · 2.31 KB

GithubProfile

Visualizing GitHub profile .

GitHub issues GitHub forks GitHub stars dependency status Build Status GitHub license code style: prettier


About

Inspired by tipsy. This instance was finished with React/Koa/Echarts, support server-side rendering

Live at https://gp.fedepot.com

Screenshot

Screenshot

Usage

Dev

Configure env

cp envrc.sample envrc

edit the envrc file

Start api server

npm run build:api
node server/index.js

Start React dev

npm run dev

Production

Configure env

cp envrc.sample envrc

edit the envrc and env.ts file

Build all resources

npm run build:all

Start Api server

npm run start:api

Start SSR server

npm run start:ssr

Configure Nginx reverse proxy

Sample file

Notes: Redis server should be installed and the host,port,password information should writed to envrc file

Docker deploy

Build all resources

npm run build:all

Configure env

cp envrc.sample envrc

edit the envrc and deploy/nginx.conf

For first time:

cd deploy && docker-compose up

Next times:

cd deploy && docker-compose start

For https home address, copy nginx-ssl.conf to cover nginx.conf.