Giter VIP home page Giter VIP logo

react's Introduction

Before you can deploy your React application, you need to build the application using Parcel (https://parceljs.org). Parcel generates the final HTML, CSS, and JS files and save them in the dist folder.

Please execute the following commands inside the example folder.

  1. Initialize the project: npm init -y
  2. Add the following line to the package.json file: "source": "index.html", . This is the souce file that contains your application.
  3. Install the parcel build tool: sudo npm install -g parcel --save-dev
  4. Install the necessary React libraries: npm install react react-dom react-router-dom
  5. Build the application using the parcel command. This command also runs a local server for previewing your Web application: parcel
  6. To preview the application within your Google Cloud Worksatation, duplicate the Tab and then change the port number to the one shown by parcel.
  7. To generate the FINAL HTML, CSS, and JS files, run the following command: parcel build . The files will be saved in the dist folder.
  8. To teset your FINAL application, terminate the parcel server. After that, change directory to the folder dist. Inside this folder, run the following command: python3 -m http.server .
  9. To preview the final application within your Google Cloud Worksatation, duplicate the Tab and then change the port number to the one shown by the python built-in server.
  10. You deploy the files in the folder dist.

=================== Notes ============================

Inside CodeSpaces [Specify Port Number]: python3 -m http.server 1234

react's People

Contributors

yosais avatar ahmmedalsaeed avatar

Forkers

munirah97

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.