GithubHelp home page GithubHelp logo

zlgale / daliuren Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wlhyl/daliuren

0.0 0.0 0.0 387 KB

golang编写的大六壬排盘

Shell 1.00% JavaScript 1.65% Go 81.02% TypeScript 2.30% Makefile 0.07% HTML 0.52% Smarty 1.68% Vue 10.41% Dockerfile 1.34%

daliuren's Introduction

golang 语言编写的六壬排盘server

单元测试

  • 下载瑞士星历表,并编译
mkdir /tmp/swe
cd /tmp/swe
wget https://www.astro.com/ftp/swisseph/swe_unix_src_2.10.02.tar.gz
tar xvzf swe_unix_src_2.10.02.tar.gz 
cd swe
make libswe.so
  • 下载瑞士星历表文件
wget https://www.astro.com/ftp/swisseph/ephe/semo_18.se1
wget https://www.astro.com/ftp/swisseph/ephe/semom48.se1
wget https://www.astro.com/ftp/swisseph/ephe/sepl_18.se1
wget https://www.astro.com/ftp/swisseph/ephe/seplm48.se1
  • 单元测试
./test.sh `pwd`  /tmp/swe/src

接口文档

/swagger/index.html

请求api

data='{"year":2022, "month":7,"day":8,"yue_jiang":"", "divination_time":"寅","diurnal":true, "year_of_birth":2000, "masculine":true}'

curl -X POST  -D  - --data $data  -H "Content-Type: application/json" 127.0.0.1/api/daliuren

构建镜像

echo VUE_APP_API_URI=http(s)://your_host/api > ui/.env.production.local
make images

部署

http访问,cert-manager.io/cluster-issuer 注解可以不用设置。

如果启用https访问,将ingress.tls设置为true,

helm install daliuren chart \
  --namespace daliuren \
  --create-namespace \
  --set ingress.enabled=true \
  --set ingress.className=nginx \
  --set ingress.hostname=your_hostname \
  --set ingress.tls=false \
  --set ingress.annotations."cert-manager\.io/cluster-issuer"=your_issuer

daliuren's People

Contributors

wlhyl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.