각종 실행 명령어 정리(Node, Python, Django, React, Java, Spring, ...)

2021. 6. 28. 18:35Note

각종 실행 명령어를 정리

#Node
node {실행파일명(ex. app.js 혹은 app)}

 

#Python

* python2 이하

python {파일이름명}.py

 

*python3 이상

python3 {파일이름명}.py

 

#Django(Python3 기준)

* 프로젝트 생성

djagno-admin startproject {프로젝트명}

 

* 프로젝트 내부에 어플리케이션 생성

python3 manage.py startapp {어플리케이션이름}

 

* 프로젝트 DB 변경 갱신(저장X)

python3 manage.py makemigrations {db갱신한어플리케이션이름 = 이부분은 생략 가능}

 

* 프로젝트 DB에 반영

python3 manage.py migrate

 

* 프로젝트 서버 실행

python3 manage.py runserver

 

* 슈퍼유저 생성

python3 manage.py createsuperuser

 

#React

* 리액트 프로젝트 생성(JavaScript)

 npx create-react-app {프로젝트명}

 

* 리액트 프로젝트 생성(TypeScript)

npx create-react-app {프로젝트명} --template typescript

 

* 프로젝트 실행

npm start

 

#React - Native

* 프로젝트 생성

//react native cli
react-native init {프로젝트명}

 

*타입스크립트 프로젝트 생성

npx react-native init MyApp --template react-native-template-typescript

//만약 에러가 생긴다면, 레거시 react-native-cli의 버전 문제이므로, react-native-cli를 삭제하고 reinstall해줘야함
npm uninstall -g react-native-cli
npm install -g @react-native-community/cli
npx react-native init MyApp --template react-native-template-typescript

 

* 안드로이드 빌드

//Mac
react-native run-android

//Windows
npx react-native run-android

 

* IOS 빌드

react-native run-ios

 

#Java

* .java 파일 -> .class로

javac {파일이름}.java

 

* .class 파일 실행

java {파일이름명}

 

#Spring

* IDE에서 실행하는게 제일 간단

 

'Note' 카테고리의 다른 글

[MacOS 기본 설정] 기본적인 개발 환경 설정  (0) 2022.01.26
터미널에서 Spring Build 명령어  (0) 2021.06.23
Spring Server Architecture  (0) 2021.06.23