.net

[.net] React 프로젝트 생성

hanseongbugi 2024. 8. 25. 15:42

프로젝트 생성

 

dotnet new react -o "프로젝트명"
  • 위 명령어를 사용해서 React 프로젝트를 생성할 수 있다.
  • -o 뒤에 프로젝트 명을 아웃풋으로 지정한다.

React 앱 실행

  • ClientApp 디렉터리에서 React에 필요한 모듈을 설치한다.
cd ClientApp
npm i
  • RankingApp 디렉터리 아래에는 C# 프로젝트가 존재한다.
  • ClientApp 디렉터리 아래에는 React 앱이 만들어져 있다.
npm start
  • ClientApp 디렉터리에서 위 명령어를 사용하면 프론트부분만 실행된다.

닷넷 실행

  • 전체 프로젝트가 위치한 디렉터리에서 아래 명령어를 실행
cd ..
dotnet run

 

 

 

 

출처

https://developefeel.tistory.com/41

 

[React] 리액트 닷넷으로 시작하기

.NET 설치 Download .NET (Linux, macOS, and Windows) Free downloads for building and running .NET apps on Linux, macOS, and Windows. Runtimes, SDKs, and developer packs for .NET Framework, .NET, and ASP.NET. dotnet.microsoft.com 위 링크에서 위를

developefeel.tistory.com

https://www.youtube.com/watch?v=4RKuyp_bOhY