๐Ÿ˜Ž ๊ณต๋ถ€ํ•˜๋Š” ์ง•์ง•์•ŒํŒŒ์นด๋Š” ์ฒ˜์Œ์ด์ง€?

[CRUD์„ ์ด์šฉํ•œ File upload Web] (6) ejs๋กœ ๋ฉ”์ธ ์ƒ๋‹จ ๋ชฉ๋ก ํ‹€ ๋งŒ๋“ค๊ธฐ ๋ณธ๋ฌธ

๐Ÿ‘ฉ‍๐Ÿ’ป ๋ฐฑ์—”๋“œ(Back-End)/Node js

[CRUD์„ ์ด์šฉํ•œ File upload Web] (6) ejs๋กœ ๋ฉ”์ธ ์ƒ๋‹จ ๋ชฉ๋ก ํ‹€ ๋งŒ๋“ค๊ธฐ

์ง•์ง•์•ŒํŒŒ์นด 2023. 3. 10. 01:40
728x90
๋ฐ˜์‘ํ˜•

<๋ณธ ๋ธ”๋กœ๊ทธ๋Š” DCodeMania ์˜ ์œ ํŠœ๋ธŒ๋ฅผ ์ฐธ๊ณ ํ•ด์„œ ๊ณต๋ถ€ํ•˜๋ฉฐ ์ž‘์„ฑํ•˜์˜€์Šต๋‹ˆ :-)>

=> CRUD App With Image Upload Using NodeJs, ExpressJs, MongoDB & EJS Templating Engine

 

 

๐Ÿฅ• ๋ฉ”์ธ ํŽ˜์ด์ง€ ์ƒ๋‹จ ๋ชฉ๋ก ํ‹€ ์žก๊ธฐ

๐Ÿง views/index.ejs

<%- include("layout/header") %>

  <div class="container">
    <div class="row my-4">
      <div class="col-lg-12">
        <div class = "table-responsive">
          <!-- ํ™”๋ฉด ํฌ๊ธฐ์— ๋”ฐ๋ผ ํšจ๊ณผ์ ์œผ๋กœ ์ฝ˜ํ…์ธ ๊ฐ€ ํ‘œ์‹œ๋˜๋„๋ก ํ…Œ์ด๋ธ”์„ ์กฐ์ • -->
          <table class = "table table-striped">
            <!-- ํ…Œ์ด๋ธ”์˜ ์—ด์˜ ๋จธ๋ฆฌ๊ธ€์ธ ํ–‰๋“ค์˜ ์ง‘ํ•ฉ -->
            <thead class = "table table-striped text-center">   
              <tr class = "table-dark">
                <th>ID</th>
                <th>Image</th>
                <th>Name</th>
                <th>E-mail</th>
                <th>Phone</th>
                <th>Action</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>1</td>
                <td><img src = "" alt = ""></td>
                <td>gani</td>
                <td>gani@test.com</td>
                <td>010-1234-1234</td>
                <td>
                  <a href = "" class = "text-success"><i class = "fas fa-edit fa-lg mx-1"></i></a>
                  <a href = "" class = "text-danger"><i class = "fas fa-trash fa-lg mx-1"></i></a>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>

728x90
๋ฐ˜์‘ํ˜•
Comments