Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.62 KB

README.md

File metadata and controls

48 lines (37 loc) · 1.62 KB

react-play-web-svc

React Play web service is basically a backend application to ReactPlay. This is a node application destined to resides within netlify ecosystem on api.reactplay.io

For more information refer React Play Gihub Repo

🏗️ How to Set up react-play-web-svc for Development?

⬇️ Install Dependencies

Install the dependencies by running the following command

npm install

Or

yarn install

🦄 Start the Development Mode

Use the following command to start the app in the development mode:

npm start

Or

yarn start

🧱 Build the App for Production

Use the following command to build the app for production:

npm run build

Or

yarn build

Production Environment

Even though the api.reactplay.io is meant for the production URL however your every PR will create a preview build in netlify for validation

Note

  1. As the application is targetted for netlify environment, you might notice some .netlify directory be created when you build it, you can safely ignore it.
  2. It uses a concept called Netlify Functions, so the entire build output gets populated under functions/server.js
  3. Netlify has size validation for function https://docs.netlify.com/edge-functions/limits/ so its important to keep the build methodology set to esbuild (refer netlify.toml)