Skip to content

brpretel/react-front-refoenergy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title description tags
Create React App
A default Create React App project, utilizing `Caddy` to serve the built app
Node
React
Caddy

Create React App

This is a Create React App starter that uses Caddy.

Deploy on Railway

✨ Features

💁‍♀️ How to use

  • Install required dependencies with npm install

  • Start the server for development npm run dev

    (The original start command has been more appropriately renamed to dev)

❓ Why use Caddy when deploying to Railway?

Caddy is a powerful, enterprise-ready, open source web server, and therefore Caddy is far better suited to serve websites than react-scripts is, using Caddy will result in much less memory and cpu usage compared to serving with react-scripts (much lower running costs too)

To see how this is achieved with nixpacks, check out the fully documented nixpacks.toml file in this repository

The configuration for Caddy is called a Caddyfile, and you can edit that file to further suite your needs, by default it comes configured to serve a single page app for react, and to also gzip the responses

Relevant Caddy documentation:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published