8000 GitHub - Raja-kumar-181/my-project1
[go: up one dir, main page]

Skip to content

Raja-kumar-181/my-project1

Repository files navigation

React

This is a simple React application. This application serves as a basic template for a react applications.
This project is bootstrapped with Vite.

How to run

  1. Before running the application, make sure all dependencies are installed. To install dependencies, run following command in terminal:

    npm install
  2. Once dependencies are installed, run the following command to start the application:

    npm run dev
  3. Refresh the URL in simple browser to see the output. As shown below

FAQs & Debugging

1. I do not see browser in my workspace

Studio will automatically open the app in a new browser tab. If not, you can use the following steps to open the simple browser

  1. From VS Code command pallette(Ctrl/Cmd + Shift + P), run Studio Manager: SimpleBrowser Default URL command. This will open the app in a new browser tab.

  2. Your app runs on hosted env which can be accessed using host id, port provided in file .vsocde/.studio/studio-env.json. Use values to create the URL as follows: https://<STUDIO_HOST_ID>-3000.ocws.app

2. Getting vite: not found error

This means node_modules are missing in your workspace, please refer the 'How to run' section and make sure you have followed the steps in sequence

3. Can I use create-react-app instead Vite?

Yes, you can use create-react-app instead Vite, the default workspace is loaded with Vite setup, you can remove the Vite dependencies, add create-react-app dependencies and update the scripts to start using create-react-app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0