Socket
Socket
Sign inDemoInstall

fastify-starter

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-starter

Fastify Typescript Starter


Version published
Maintainers
1
Created
Source

Welcome to fastify-starter 👋

Version License: MIT Twitter: jellydn

Fastify Typescript Starter

Features

Install

yarn install

Usage

yarn start

Swagger UI

Open below link on your browser with localhost http://localhost:3000/documentation or try with demo server https://fastify-starter.fly.dev/documentation

https://gyazo.com/6cf6c02cb36f9d4fababdde1ad071aba.gif

GraphQL Client IDE

Open below link on your browser with localhost http://localhost:3000/altair or try with demo server https://fastify-starter.fly.dev/altair

https://gyazo.com/49e9af06a6a13390abefd5c58a1296f7.png

GraphQL

If you are new to GraphQL, please watch the below video for more information. IT Man - Talk #27 - GraphQL 2022 Report Insights [Vietnamese]

Run below command in your terminal/CLI

curl -H "Content-Type:application/graphql" -XPOST -d "query { hello }" http://localhost:3000/graphql | jq .

Output:

{
  "data": {
    "hello": "Hello World!"
  }
}

Run tests

yarn test

Deployment

This template comes with two GitHub Actions that handle automatically deploying your app to production environment.

Prior to your first deployment, you'll need to do a few things:

  • Install Fly

  • Sign up and log in to Fly

    fly auth signup
    
  • Create a new app on Fly:

    fly create fastify-starter
    
  • Create a new GitHub Repository

  • Add a FLY_API_TOKEN to your GitHub repo. To do this, go to your user settings on Fly and create a new token, then add it to your repo secrets with the name FLY_API_TOKEN.

Now that every is set up you can commit and push your changes to your repo. Every commit to your main branch will trigger a deployment to your production environment.

GitHub Actions

We use GitHub Actions for continuous integration and deployment. Anything that gets into the main branch will be deployed to production after running tests/build/etc.

Author

👤 Huynh Duc Dung

Show your support

kofi paypal buymeacoffee

Give a ⭐️ if this project helped you!

Stargazers repo roster for @jellydn/fastify-starter

Keywords

FAQs

Package last updated on 10 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc