Skip to content

minthing/nodebird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

54 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Vue.js + Node.js๋กœ ํŠธ์œ„ํ„ฐ ํด๋ก ํ•˜๊ธฐ ๐Ÿ•Š

daily progress


210405(ํ™”)
  • ๋กœ์ปฌ์— vue์™€ nuxt ์„ค์น˜ํ•˜๊ธฐ
  • ์ฐธ๊ณ ์ž๋ฃŒ : vue.js | nuxt.js
210408(๋ชฉ)
  • ์—ญ์‹œ atom๋ณด๋‹ค vscode๊ฐ€ ํŽธํ•˜๋‹ค. vue ์Šคํƒ€์ผ ํ…œํ”Œ๋ฆฟ ์ฐพ๋Š๋ผ ํ•˜๋ฃจ๋ฅผ ๋‚ ๋ ธ๋Š”๋ฐ...
  • ํด๋” ๊ตฌ์กฐ์™€ ๊ฒฝ๋กœ์— ๋”ฐ๋ผ ํŽ˜์ด์ง€ ํŠธ๋ฆฌ ์ƒ์„ฑ
  • pages๋‚˜ layouts์™€ ๊ฐ™์€ ํด๋”๋ช…์€ ๋””ํดํŠธ์ž„
  • nuxt๋Š” ๊ฐœ๋ณ„์ ์ธ ํŽ˜์ด์ง€๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ์Œ (code spliting)/ vue-router๋Š” ์‹ค์ œ๋กœ๋Š” ํ•˜๋‚˜์˜ ํŽ˜์ด์ง€์ธ๋ฐ ๊ฐ url๋งˆ๋‹ค ์ปดํฌ๋„ŒํŠธ ๋ฐ”๊ฟ”์น˜๊ธฐ๋ฅผ ํ•จ(์ˆ˜๋ฐฑ๋งŒ๊ฐœ์˜ ํŽ˜์ด์ง€๋ฅผ ์ „๋ถ€ ๋กœ๋”ฉํ•ด์•ผ ํ•จ -> ์„ฑ๋Šฅ์ €ํ•˜)
<nuxt-link to="/signup">Signup</nuxt-link> //vue-router์—์„œ router-link์™€ ๊ฐ™์Œ
  • ํŽ˜์ด์ง€๋ณ„๋กœ ๊ณตํ†ต๋˜๋Š” ์š”์†Œ๋Š” layouts/defalut.vue์— ๋ชฐ์•„๋„ฃ๊ณ  ์•„๋ž˜์•  <nuxt />๋ฅผ ํ†ตํ•ด ๊ฐœ๋ณ„ ํŽ˜์ด์ง€ ๋‚ด์šฉ์„ ๋ถˆ๋Ÿฌ์˜จ๋‹ค.

  • The component is the component you use to display your page components. Basically, this component gets replaced by what is inside your page components depending on the page that is being shown. Therefore it is important that you add the component to your layouts.

<template> // default.vue ์•ˆ์˜ ๋‚ด์šฉ
  <div>
    <nav>
    <nuxt-link to="/">Home</nuxt-link> // ๋‹ค์Œ ํŽ˜์ด์ง€ ๋ฏธ๋ฆฌ ๋กœ๋”ฉํ•˜๋Š” ๊ธฐ๋Šฅ์„ ํฌํ•จ router-link ๋ง๊ณ  ์ด๊ฑฐ ์‚ฌ์šฉ
    <nuxt-link to="/profile">Profile</nuxt-link>
    <nuxt-link to="/signup">Signup</nuxt-link>
    </nav>
    <nuxt /> // router-view์™€ ๊ฐ™์Œ
  </div>
</template>
210410(ํ† )
210411(์ผ)
  • ํ™”๋ฉด ๋ถ„ํ•  cols๊ฐ’์ด md์˜ ์ดํ•ฉ๊ณผ ๊ฐ™์ง€ ์•Š์œผ๋ฉด ์ž‘๋™ ์•ˆํ•จ. (์ฐธ๊ณ  : https://vuetifyjs.com/en/components/grids/)
    <v-row>
      <v-col cols="12" md="4">์™ผ์ชฝ</v-col>
      <v-col cols="12" md="8">์˜ค๋ฅธ์ชฝ</v-col>
    </v-row>
210412(์›”)
210415(๋ชฉ)
2104016(๊ธˆ)
210425(์ผ)
210601(ํ™”)
  • npm i multer : formData ํ•ด์„์„ ์œ„ํ•ด ์„ค์น˜
210605(ํ† )
  • multer : formData ํ•ด์„ ํ›„์— ์•Œ์•„์„œ ์ด๋ฏธ์ง€ ์ €์žฅํ•ด์คŒ. ํŒŒ์ผ ์ •๋ณด ๋ฐฐ์—ด๋กœ ๋„ฃ์–ด์คŒ.

About

vue.js+node twitterr ๐Ÿ•Š

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published