Giter Site home page Giter Site logo

kickstart-fastify's Introduction

kickstart-fastify's People

Contributors

dependabot[bot] avatar kaungwai avatar

kickstart-fastify's Issues

Result schema is unnecessary to export.

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>

keygen & sdkgen with ts-node

Currently keygen & sdkgen scripts are written in typescript and need to compile before running.
It would be better using ts-node.

keygen with nodejs

α€œα€±α€¬α€œα€±α€¬α€†α€šα€Ί jwt secret key α€€α€­α€― bash script α€”α€²α€· generate α€œα€―α€•α€Ία€α€²α€·α€•α€―α€Άα€…α€Άα€›α€±α€Έα€‘α€¬α€Έα€α€šα€Ί
windows တွေမှာ bash α€žα€―α€Άα€Έα€œα€­α€―α€·α€‘α€†α€„α€Ία€™α€•α€Όα€±α€α€²α€·α€‘α€α€½α€€α€Ί nodejs နဲ့ပဲ generate α€œα€―α€•α€Ία€œα€­α€―α€·α€›α€‘α€±α€¬α€„α€Ία€•α€Όα€±α€¬α€„α€Ία€Έα€›α€±α€Έα€•α€±α€Έα€–α€­α€―α€·α€œα€­α€―α€α€šα€Ί

  • private key, public key α€‘α€…α€―α€Άα€œα€­α€―α€€α€Ία€™α€‘α€―α€α€Ία€α€±α€¬α€·α€˜α€°α€Έ secret α€α€…α€Ία€α€―α€•α€²α€‘α€¬α€Έα€α€±α€¬α€·α€™α€šα€Ί
  • jwt plugin α€€α€­α€― α€•α€Όα€”α€Ία€•α€Όα€„α€Ία€›α€™α€šα€Ί
  • package.json α€›α€²α€· scripts မှာ keygen command α€α€­α€―α€Έα€•α€±α€Έα€™α€šα€Ί
  • readme.md α€€α€­α€― update α€œα€―α€•α€Ία€•α€±α€Έα€–α€­α€―α€·α€œα€­α€―α€α€šα€Ί

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.