DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • How to Build a Full-Stack App With Next.js, Prisma, Postgres, and Fastify
  • Build a Plagiarism Checker Using Machine Learning
  • How to Build a Concurrent Chat App With Go and WebSockets
  • How To Dockerize Mean Stack App

Trending

  • The Cypress Edge: Next-Level Testing Strategies for React Developers
  • Event-Driven Architectures: Designing Scalable and Resilient Cloud Solutions
  • How to Convert XLS to XLSX in Java
  • Measuring the Impact of AI on Software Engineering Productivity
  1. DZone
  2. Data Engineering
  3. Databases
  4. How to Use Backendless With React.js, Part 4: Build and Deploy

How to Use Backendless With React.js, Part 4: Build and Deploy

A quick post to finish off the series, we run a few commands to build and deploy the app we've created.

By 
Vladimir Upirov user avatar
Vladimir Upirov
·
Apr. 25, 19 · Tutorial
Likes (1)
Comment
Save
Tweet
Share
8.2K Views

Join the DZone community and get the full member experience.

Join For Free

React.js tutorial

In this article, we are going to continue developing our React.js web application using Backendless for the backend. This is Part 4 of our series, so be sure you've read through parts 1-3, linked below:

  • How to Use Backendless With React.js
  • How to Use Backendless With React.js, Part 2: CRUD Tutorial
  • How to Use Backendless With React.js: Real-Time Database Integration Tutorial

If you have already read those then read on. Otherwise, we recommend you either read read all of the articles and build the app step-by-step, or you can clone the app from this GitHub repository and use this commit as a starting point. Today we will build our app for the first time and deploy it to Backendless Files.

Build the App

We will deploy our app as static files into Backendless Files, and the app will be served by a URL like this one: https://backendlessappcontent.com/{APP_ID}/{REST_API_KEY}/some/directory/index.html. All app assets and files must be defined with a relative path; you can get more info here. Simply add the key/value pair to the package.json file:

"homepage": ".",

Now run the build npm script command:

npm run build

A new directory, build, must be created.

Deploy the App

Next, let's archive the build directory and drag and drop it into Backendless Files:

Then unzip the build.zip file:

Remove everything from the unzipped directory into the app folder (I created this folder earlier; you can create it now if you don't have one). Now copy the link to the index.html file to the clipboard and paste it into a new browser page.

Here we go, it works. You can test the app I've built at this link.

Custom Domain

If you've got your own domain, you can deploy the app into the directory, then go to the Backendless App Setting page and specify the domain there:

In this case, your React app will be served on  "http://my-custom-domain.com." You can read more about custom domains in the docs.

Thanks for reading and I hope you enjoyed the series!



If you enjoyed this article and want to learn more about React, check out this collection of tutorials and articles on all things React.

Build (game engine) app Database

Published at DZone with permission of Vladimir Upirov, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • How to Build a Full-Stack App With Next.js, Prisma, Postgres, and Fastify
  • Build a Plagiarism Checker Using Machine Learning
  • How to Build a Concurrent Chat App With Go and WebSockets
  • How To Dockerize Mean Stack App

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!