Make a new project from IDE to GitHub

Step 1: Create a new project in your terminal

  1. Go to your folder where you want your folder to your new project.
  2. Right-click and open terminal.
  3. Use the following commands:

Create react template with Vite and TypeScript

```bash
npm create vite@latest my-react-app -- --template react-ts
```

Go to the folder of your new project

```bash
cd my-react-app
```

Run npm-install

```bash
npm install
```

Delte template files and clean repository.

Step 2: Create a New Repository on GitHub

  1. Go to GitHub and make a new repository. Do not add with a readme file .README.md
  2. When the repository is made, go to repository site <> Code if you haven’t been automatedly been placed there.
  3. Copy the code block under the text …or create a new repository on the command line
  4. Go to your IDE terminal in your new repository you made (under step 1), paste the text in your terminal. You probably have to hit Enter on your keyboard one or two times.

Done

Your IDE project is now pushed to GitHub.

Note

Remember to install LESS, Prettier and other things you might want to use.

npm install -D typescript

npm install -D typescript-eslint

npm install -D prettier

npm install -D less