๐ ๊ณต๋ถํ๋ ์ง์ง์ํ์นด๋ ์ฒ์์ด์ง?
[CRUD์ ์ด์ฉํ File upload Web] (6) ejs๋ก ๋ฉ์ธ ์๋จ ๋ชฉ๋ก ํ ๋ง๋ค๊ธฐ ๋ณธ๋ฌธ
๐ฉ๐ป ๋ฐฑ์๋(Back-End)/Node js
[CRUD์ ์ด์ฉํ File upload Web] (6) ejs๋ก ๋ฉ์ธ ์๋จ ๋ชฉ๋ก ํ ๋ง๋ค๊ธฐ
์ง์ง์ํ์นด 2023. 3. 10. 01:40728x90
๋ฐ์ํ
<๋ณธ ๋ธ๋ก๊ทธ๋ 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
๋ฐ์ํ
'๐ฉโ๐ป ๋ฐฑ์๋(Back-End) > Node js' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Comments