Git Product home page Git Product logo

next-js-study's Introduction

nextJs-study

초기 설정

// client setting (현재 경로에 next + typescript 설치)

cd client
npx create-next-app@latest --typescript ./

// server setting (node server 구현에 필요한 라이브러리 설치)

cd server
yarn init -y
yarn add morgan nodemon express --save
yarn add typescript ts-node @types/node @types/express @types/morgan --save-dev

npx tsc --init (tsconfig.json 설정)

yarn add pg typeorm reflect-metadata --save

npx typeorm init (typeorm 초기 설정)

도커 설정

touch docker-compose.yml .env

docker-compose up (도커 실행 명령어)

tailwind css 사용법

tailwind 공식문서

yarn add -D tailwindcss postcss-preset-env

npx tailwind init (테일윈드 초기 설정)



touch postcss.config.json (postcss config 설정)
/* ---------------------------------------------------- */
// postcss.config.json

{
  "plugins": ["tailwindcss", "postcss-preset-env"]
}

/* ---------------------------------------------------- */


global.css에 tailwind 사용 설정 (상단에 @tailwind ... 작성)


/* ---------------------------------------------------- */
// global.css

@tailwind base;
@tailwind components;
@tailwind utilities;

... (기존 코드)

/* ---------------------------------------------------- */

next-js-study's People

Contributors

seob171 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.