[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108046":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":14,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":16,"fork":16,"defaultBranch":17,"hasWiki":18,"hasPages":16,"topics":19,"createdAt":9,"pushedAt":20,"updatedAt":21,"readmeContent":22,"aiSummary":23,"trendingCount":14,"starSnapshotCount":14,"syncStatus":24,"lastSyncTime":25,"discoverSource":26},108046,"solana-foundation-kora","mAphrica\u002Fsolana-foundation-kora","mAphrica","Implementation of a Solana relayer. Provides a lib and cli crate in order to enable signing experiences on Solana",null,"Rust",89,17,91,0,40.84,false,"master",true,[],"2026-11-03 20:45:11","2026-11-23 18:21:58","# Description\nThe project is a Signle Page Appliation, it uses react as frontend framework, Nest as backend framework. Both frontend and backend are using typescript. \nThe project is using sqlite as backend database, for demo purpose, to eliminate database configuration.\nIt has the following features:\n\n## Backend \n- JWT authorization and authentication\n- Generaral Entity CRUD Web Api\n- Type Orm as entity framework\n## Frontend\n- User Login and User Profile \n- User CRUD and Client CRUD\n- Material UI Design\n\n# Share code between frontend and backend\nAuthough both frontend and backend are written by typescript, it's tricky to put code in to same repository \nmy ideal strutrue would be like\n- -backend\u002Fsrc\n- -frontend\u002Fsrc\n- -shared\u002Fsrc\nin this way, main.js of the backend need to refrence some file in ..\u002F..\u002Fshared\u002Fsrc, it didn't work after I publish the project production enviroment. \nso share files must reside in backend src directory, so I changed the structure as following\n## the code structure \n- package.json\n- -src\n- -[nest code]\n- -src\\client\n- -scr\\client\\package.json\n- -src\\client\\src\n- -scr\\client\\src\\share \u002F\u002Fentities, shared utility functions,etc...\n- -src\\client\\src\\[react code]\n\nthe root directory of the project is the backend code, it was generated by nest cli\nthe src\\client direcotry is frontend code, it is a react app  generated by 'create react app'\nboth nest app and react app have their own package.json, so frontend and backend can has their own node_modules.\n\n### some configurations\nadd the following line to src\\client\\.env, otherwise react app won't compile\n```\nSKIP_PREFLIGHT_CHECK=true\n```\nalso set baseUrl to src in both package.json and src\u002Fclient\u002Fpackage.json\n```\n    \"baseUrl\": \".\u002Fsrc\",\n```\nadd src\u002Fclient to tsconfig.build.json\n```\n\"exclude\": [\"node_modules\", \"test\", \"dist\",\"src\u002Fclient\", \"**\u002F*spec.ts\"]\n```\n## run both frontend and backend in development mode\n- start backend first \n```\nyarn start:dev\n```\n- start the frontend\n```\ncd \u002Fsrc\u002Fclinet\nyarn start\n```\nthe headend is listening to port 4000, the frontend is listening to port 3000\nadd the following code to src\u002Fclient\u002Fpackage.json, so if the frontend requests to a backend webapi, eg 'api\u002Fsign\u002Fsign', it would send the request to 'http:\u002F\u002Flocalhost:4000\u002Fapi\u002Fsign\u002Fsign' \n```\n  \"proxy\": \"http:\u002F\u002Flocalhost:4000\u002F\",\n```\n\n## the file structure of the published\nfrontend and backend can be put to seperate app service, I prefered to put them in the same app service to save costs, also I don't need to enable cros.\n\nAfter deploy to app service, the structure is like\n- main.js\n- client \u002F\u002Fhere is all react code\n- client\u002Fsrc\u002Fshare  \u002F\u002Fthe code shared between frontend and backend\n- other headend code\n- node_modules\n\n### let nest to Serve Static\na client request was handled by nest router first, if nest router find the url match a controller, then it calls the web api, otherwise it looks if there is a static file in the client directory\n```\n ServeStaticModule.forRoot({\n      rootPath: join(__dirname, 'client')\n    }),\n```\n\n## share the entity code\ntypeorm require add decorator @entity to class, and add @column decorator to class properies.\nalso I want to use a lib 'class-validator' to validate form inputs.\nso the entity code ends up as the following\n```\nimport { Entity, Unique,Column, ManyToOne } from 'decorators\u002FmyTypeOrmDecorator';\nimport { IsEmail, IsString, MinLength, MaxLength, Matches} from 'class-validator';\n@Entity('user')\n@Unique(['username'])\nexport class User extends MyBaseEntity {\n  @IsEmail()\n  @Column()\n  username: string = '';\n\n  @MinLength(1)\n  @Column()\n  firstname: string ='';\n    ...\n```\nFor the backend project, I can import @Entity(), @Column() from typeorm, but I don't want to do that for frontend project.\nso instead of import Entity, Column from typeorm directly, I import the decorators from myTypeOrmDecorator\n```\nimport { Entity, Unique,Column, ManyToOne } from 'decorators\u002FmyTypeOrmDecorator';\n```\nbecause in both package.json and src\u002Fclient\u002Fpackage.json, I set baseUrl to 'src', 'decorators\u002FmyTypeOrmDecorator' refrence to diffrent files for frontend project and backend project\n- for frontend project, it refrence to 'src\u002Fclient\u002Fsrc\u002Fdecorators\u002FmyTypeOrmDecorator'\n- for backend project, it refrence to 'src\u002Fdecorators\u002FmyTypeOrmDecorator'\n\nin 'src\u002Fdecorators\u002FmyTypeOrmDEcorator', I export * from typeorm\n```\nexport * from \"typeorm\";\n```\nin 'src\u002Fclient\u002Fsrc\u002Fdecorators\u002FmyTypeOrmDecorator', I create some dummy decorators, the decorators do nothing, just to let frontend code be compiled\n\n\ntodo: when create use, if validate fail, it clear the form, maybe useMemory?\n","这是一个为 Solana 区块链设计的中继器（relayer）实现，提供 Rust 编写的库（lib）和命令行工具（CLI），用于在 Solana 上安全地构建和管理签名交互流程。核心功能包括交易中继、签名委托与上下文感知的签名会话管理，基于 Rust 的内存安全与高性能特性，并遵循 Solana 的账户模型与消息签名规范。适用于需要解耦前端签名逻辑（如钱包集成、dApp 无密钥交互）或构建合规签名服务的场景，例如嵌入式钱包、多签服务、链下授权系统等。",2,"2026-11-24 04:33:23","CREATED_QUERY"]