kaungwai / kickstart-fastify Goto Github PK
View Code? Open in Web Editor NEWkickstart your fastify service development
License: MIT License
kickstart your fastify service development
License: MIT License
When requests are made from http://xxx.xxx.xxx.xxx (without port number), application thorw interanl server error with 'Not allowed' message.
Result schema is unnecessary to export.
import { field } from '@/schemas/fields'
import { Static, Type } from '@sinclair/typebox'
import { DefaultResponse } from '@/handlers/base/defaultResponse'
export const createProductResult = Type.Object({
productId: field.productId,
productName: field.productName,
productDescription: field.productDescription,
productPrice: field.productPrice,
})
export const createProductResponse: DefaultResponse<typeof createProductResult> = {
result: createProductResult,
}
export type CreateProductResult = Static<typeof createProductResult>
export type CreateProductResponse = DefaultResponse<CreateProductResult>
π
import { field } from '@/schemas/fields'
import { Static, Type } from '@sinclair/typebox'
import { DefaultResponse } from '@/handlers/base/defaultResponse'
const createProductResult = Type.Object({
productId: field.productId,
productName: field.productName,
productDescription: field.productDescription,
productPrice: field.productPrice,
})
export const createProductResponse: DefaultResponse<typeof createProductResult> = {
result: createProductResult,
}
export type CreateProductResult = Static<typeof createProductResult>
export type CreateProductResponse = DefaultResponse<CreateProductResult>
Currently keygen & sdkgen scripts are written in typescript and need to compile before running.
It would be better using ts-node.
It would be nice to see prisma background sql statements as debug log.
Ref:
https://www.prisma.io/docs/concepts/components/prisma-client/working-with-prismaclient/logging
Tracking issue for:
αα±α¬αα±α¬αααΊ jwt secret key ααα― bash script αα²α· generate αα―ααΊαα²α·αα―αΆα
αΆαα±αΈαα¬αΈαααΊ
windows αα½α±ααΎα¬ bash αα―αΆαΈααα―α·α‘αααΊαααΌα±αα²α·α‘αα½ααΊ nodejs αα²α·αα² generate αα―ααΊααα―α·αα‘α±α¬ααΊααΌα±α¬ααΊαΈαα±αΈαα±αΈααα―α·ααα―αααΊ
OperationIds are using as method names in swagger-typescript-api.
If operationIds are not specified, method names are auto-generated according to route path.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.