/sample-react-fastify

Sample React + Fastify App

Primary LanguageJavaScript

React + Fastify

Sample app using React for frontend and Fastify for backend.

Development

Frontent

ui directory contains the frontend code created using Create React App.

Start development:

$ npm start

Server

server directory contains the API server code using Fastify framework.

Start the server:

$ npm start

Deployment

This application can be deployed to DigitalOcean App Platform. Frontend is deployed as a static site component, while the server is deployed as a web service.

Clone the repo.

Adjust ./do/app.yaml to match up your GitHub URLs.

Create app using doctl:

doctl apps create --spec .do/app.yaml