Skip to content

cjihrig/platformatic-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to platformatic-starter 👋

Version License: MIT Twitter: jellydn

platformatic quick start demo app

IT Man - Tech #28 - Platformatic DB - Automatic OpenAPI/GraphQL API generation  [Vietnamese]

Demo

Prerequisites

  • Node.js >= v16.17.0 or >= v18.8.0

Install

yarn install

Usage

yarn dev

Microservices (Beta)

Platformatic Service in public beta.

yarn service

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 apps create platformatic-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.

  • Create a persistent volume for the sqlite database for your app. Run the following:

    fly volumes create data --size 1 --app platformatic-starter

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.

Useful references

Author

👤 Dung Huynh

Show your support

kofi paypal buymeacoffee

Give a ⭐️ if this project helped you!

Stargazers repo roster for @jellydn/platformatic-starter

About

Platformatic starter template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 62.2%
  • Dockerfile 27.6%
  • Shell 9.6%
  • Procfile 0.6%