Skip to content

niwiunig/create-react-app-starter-xI6r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Create React App

This is a Create React App starter that uses serve.

Deploy on Railway

✨ Features

  • Create React App
  • Serve

💁‍♀️ 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 serve

By default Railway will use the start script defined in package.json to run your app, the problem with that for a default create-react-app project is that the start script starts a development server not fit to run on railway, for reasons such as:

  • Starts a file watching development server that's resource intensive
  • Has a tendency for ram to get out of hand (>600mb)
  • Doesn't listen on the railway provided PORT variable
  • Not as stable or performant as serve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published