Không có mô tả

warrior 41896099fa 更新部分问题 1 tháng trước cách đây
.vscode ab32518bfa created 10 tháng trước cách đây
docker b721b72221 feat: fonts with ttf 8 tháng trước cách đây
docker-front e1747e578e fix: attachment desc 8 tháng trước cách đây
docker-office 1456b7c6b4 fix: merge pdf img 7 tháng trước cách đây
docs 9b017f9a0c 教材技术文档 5 tháng trước cách đây
projects 41896099fa 更新部分问题 1 tháng trước cách đây
public f4b3cfc009 update 8 tháng trước cách đây
server 3dc045f214 feat: sessionToken review 5 tháng trước cách đây
src 455bd2343c feat: new home page for textbook 10 tháng trước cách đây
.editorconfig ab32518bfa created 10 tháng trước cách đây
.gitignore f505391bb6 feat: docker scripts 9 tháng trước cách đây
README.md 3c41200d78 feat: docker-office 8 tháng trước cách đây
angular.json 5de724d5ef fix: deploy-www without tar 9 tháng trước cách đây
deploy-www.sh ecbee2d23b fix: api https 9 tháng trước cách đây
ionic.config.json 455bd2343c feat: new home page for textbook 10 tháng trước cách đây
package-lock.json f51296fc88 feat: upload with aliyun oss 9 tháng trước cách đây
package.json f51296fc88 feat: upload with aliyun oss 9 tháng trước cách đây
tsconfig.app.json ab32518bfa created 10 tháng trước cách đây
tsconfig.json ab32518bfa created 10 tháng trước cách đây
tsconfig.spec.json ab32518bfa created 10 tháng trước cách đây

README.md

国家级教材遴选系统——后端项目 edu-server

常用命令

  • 测试环境

本地开发调试

/server

npx vite build
cp ./dist/server/server.js temp-server.js
node temp-server.js --local

线上开发环境

  • 服务器
    • root@8.140.98.43
  • 数据库
    • psql --dbname=postgresql://postgres:Edu2024textbask@127.0.0.1:25432/
  • 管理看板

    • parse-dashboard --appId edu-textbook --masterKey "EDU2024" --serverURL http://8.140.98.43/parse --appName EduTextbook

      ALTER USER postgres WITH PASSWORD 'Edu2024textbask';
      

线上生产环境

-- 生产用户 psql --dbname=postgresql://textbook:Edu2024textbask@pgm-2zehqf5x28989whc.pg.rds.aliyuncs.com:5432/textbook

CREATE DATABASE textbook; CREATE USER textbook WITH PASSWORD 'Edu2024textbask'; GRANT ALL PRIVILEGES ON DATABASE textbook TO textbook; GRANT ALL PRIVILEGES ON SCHEMA public TO textbook;

--rds-- PostgreSQL

psql --dbname=postgresql://admin_user@pgm-2zehqf5x28989whc.pg.rds.aliyuncs.com:5432/

实例ID: pgm-2zehqf5x28989whc 内网地址:pgm-2zehqf5x28989whc.pg.rds.aliyuncs.com 公网地址:pgm-2zehqf5x28989whc1o.pg.rds.aliyuncs.com 高权限账号:admin_user 密码:DCG!MfwW7fpvA ----注意高权限账号建库建表后要回收,给普通权限账号----

---oss--- Bucket: hep-textbook 用户登录名称 hep-textbook-api@cloudhep.onaliyun.com AccessKey ID: LTAI5t6AbTiAvXmeoVdJZhL3 AccessKey Secret: KLtQRdIW69KLP7jnzHNUf7eKmdptxH 内网地址:oss-cn-beijing.aliyuncs.com 外网地址:oss-cn-beijing-internal.aliyuncs.com

Office专用服务器

  • root@123.57.204.89
    • AXpMbo6eoTy46Na

Authing 用户服务

管理员

https://lljydpt8egql.u2-dev.hep.com.cn/

  • 用户名 hanlei
  • 密码 13581837652

AKSK

AccessKey ID: 6682ab96b7 AccessKey Secret: 4cfc095a72

单页面应用

AppID 6682ab96b7

AppSecret 4cfc095a72

Token 端点 https://textbook.u2-dev.hep.com.cn/oidc/token

用户信息端点 https://textbook.u2-dev.hep.com.cn/oidc/me

登出端点 https://textbook.u2-dev.hep.com.cn/oidc/session/end

JWKS 公钥端点 https://textbook.u2-dev.hep.com.cn/oidc/.well-known/jwks.json

认证端点 https://textbook.u2-dev.hep.com.cn/oidc/auth

Issuer https://textbook.u2-dev.hep.com.cn/oidc

服务发现地址 https://textbook.u2-dev.hep.com.cn/oidc/.well-known/openid-configuration

认真地址 https://textbook.u2-dev.hep.com.cn

开发者AKSK

对接 Authing SDK 的接口文档:https://api-explorer.authing.cn/?source=Authing%20%E7%AE%A1%E7%90%86%20API

https://api-explorer.authing.cn/?source=Authing%20%E7%94%A8%E6%88%B7%E8%AE%A4%E8%AF%81%20API

用户池 id:6672540d87

测试用户池密钥:491670e7ef

开发人员协作

  • 高教社运维负责
    • 4966367 wuhuaide 1649663385
    • 吴怀德
    • wuhuaide (867947897@qq.com)
  • Authing项目负责
    • 韩磊-leohan83
    • 韩磊 我自己
    • leohan83 (hanlei@authing.com)

国家级教材遴选系统——前端项目 edu-textbook

This project was generated with Angular CLI version 18.0.4.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.