vanilla

    Vanilla SPA 구현

    Vanilla SPA 구현

    바닐라 자바스크립트로 SPA 만들기 기본 세팅 폴더 구조 프로젝트 폴더에 frontend/index.html 생성. 화면에 보여줄 초기 화면 Dashboard Posts Settings express 서버 구축 간단한 서버를 구축하기 위해 express 를 설치해준다. npm i express 설치 후 프로젝트 폴더에 server.js 생성 // servser.js // express 서버 만들기 const express = require("express"); const path = require("path"); const app = express(); // 정적 (static) 구조 세팅 frontend 의 static 폴더 app.use( "/static", express.static(path.res..