diff --git a/.env b/.env new file mode 100644 index 0000000..68f9b3a --- /dev/null +++ b/.env @@ -0,0 +1,13 @@ +# Environment variables declared in this file are automatically made available to Prisma. +# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema + +# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. +# See the documentation for all the connection string options: https://pris.ly/d/connection-strings + +VUE_APP_BACKEND_HOST="http://localhost:3000" +VUE_APP_BACKEND_HEADERS_Content_Type="application/json;charset=utf-8" +VUE_APP_BACKEND_HEADERS_Access_Control_Allow_Origin="*" + +#LocalStorage는 Edge 브라우저의 개발툴 > 응용프로그램 > 로컬 저장소에서 확인가능 +VUE_APP_LOCALSTORAGE_NAME="access_token" + diff --git a/src/components/common/LoginComponent.vue b/src/components/common/LoginComponent.vue new file mode 100644 index 0000000..e7982b8 --- /dev/null +++ b/src/components/common/LoginComponent.vue @@ -0,0 +1,98 @@ + + + diff --git a/src/router/index.js b/src/router/index.js index f38e022..4ffb39d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -17,14 +17,22 @@ const routes = [ // this generates a separate chunk (about.[hash].js) for this route // which is lazy-loaded when the route is visited. component: () => - import(/* webpackChunkName: "about" */ '../views/AboutView.vue') + import(/* webpackChunkName: "about" */ '@/views/AboutView.vue') + }, + { + path: '/login', + name: 'LoginComponent', + component: () => + import( + /* webpackChunkName: "api", webpackPrefetch:true */ '@/views/loginView.vue' + ) }, { path: '/todo', name: 'TodoListView', component: () => import( - /* webpackChunkName: "api", webpackPrefetch:true */ '../views/todo/listView.vue' + /* webpackChunkName: "api", webpackPrefetch:true */ '@/views/todo/listView.vue' ) } ] diff --git a/src/views/loginView.vue b/src/views/loginView.vue new file mode 100644 index 0000000..2c1fd9a --- /dev/null +++ b/src/views/loginView.vue @@ -0,0 +1,15 @@ + + + diff --git a/src/views/todo/listView.vue b/src/views/todo/listView.vue index 860c70e..b7f9fb9 100644 --- a/src/views/todo/listView.vue +++ b/src/views/todo/listView.vue @@ -150,11 +150,8 @@