목록Web Development (2)
what i learned
1. express 프로젝트 생성하기 npm 전역설치 $ npm i -g express-generator $ express 프로젝트명 생성한 프로젝트에 들어가서 $ cd 프로젝트 서버를 돌리기 위해 필요한 것 설치 $ npm i 서버 계속 돌리기 위한 패키지 설치 $ npm install -D nodemon +) nodemon을 설치했다면 package.json 파일에서 nodemon으로 수정해야한다. "scripts": { "start": "nodemon ./bin/www" }, 2. 필요한 폴더 및 파일 생성하기 1) .env 파일 생성 (환경변수를 관리하는 파일) DATABASE = 데이터베이스명 PASSWORD = MySQL비밀번호 USERNAME = root HOST = localhost//lo..
1. 가상환경에서 시작하기 $ conda activate 가상환경명 2. 데이터를 넣을 DB 만들기 MySQL 접속 $ mysql -u root -p 비밀번호 입력 후 DB 생성하기 (비밀번호는 창에서 보이지 않는다..!) CREATE DATABASE DB명 CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; +) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; 명령어는 한국어와 이모지 지원 기능이지만 자동으로 지원될 수도 있음 3. 클론하기 $ git clone 클론하려는_깃주소 4. python package 설치 $ pip install django $ pip install mysqlclient $ pip install ..