React

How to host a React app on Cyclic.

A quick guide to help you get up and running with React.

Prerequisites

  • You should have a Cyclic.sh account. If you don't have one, sign up for an account on their website.
  • Make sure you have Node.js and npm installed on your local machine.

Step 1: Set up your React App

If you don't have a React app already, you can create one using Create React App:

        npx create-react-app my-react-app
        cd my-react-app

Step 2: Build your React App

Before deploying your React app, you need to build it for production. Run the following command in your project's root directory:

        npm run build

Step 3: Create a Cyclic.sh app

  1. Log in to your Cyclic.sh account.
  2. Click on "New App" and deploy a new app.
  3. On the 'Link Your Own' tab, search for your React app. If you don't see it, try refreshing the list.
  4. Once you select the repo, a Github popup will appear asking you to install Cyclic and give it access to the repo.

Step 5: Deploy your React App on Cyclic.sh

  1. Once you've connected your repository, select the branch you want to deploy.
  2. Set up your deployment settings (you can use the default settings for a simple React app).
  3. Start the deployment process.

Cyclic.sh will automatically build your code, and your React app will be hosted. You'll be provided with a URL where your app is accessible.

Step 6: Access your React App

After the deployment is complete, you can access your React app by navigating to the provided URL in your web browser.

That's it! You've successfully hosted your React app on Cyclic.sh for free. Cyclic.sh offers a free tier that allows you to run small projects at no cost. If you have more complex requirements, you can explore their pricing plans.

Deploy a React app now


We have a starter template ready, all you have to do is press Deploy.