Skip to content

AlanChiangg/account-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

帳密檢查機制

一個簡單的會員認證機制。

專案畫面

image

使用者資料庫(登入帳密)

 {
   firstName: 'Tony',
   email: 'tony@stark.com',
   password: 'iamironman'
 },
 {
   firstName: 'Steve',
   email: 'captain@hotmail.com',
   password: 'icandothisallday'
 },
 {
   firstName: 'Peter',
   email: 'peter@parker.com',
   password: 'enajyram'
 },
 {
   firstName: 'Natasha',
   email: 'natasha@gamil.com',
   password: '*parol#@$!'
 },
 {
   firstName: 'Nick',
   email: 'nick@shield.com',
   password: 'password'
 }

Environment SetUp - 環境建置

Node.js

Installing - 專案安裝流程

  1. 打開你的 terminal,Clone 此專案至本機電腦
git clone https://github.com/AlanChiangg/account-login.git
  1. 開啟終端機(Terminal),進入存放此專案的資料夾
cd account-login
  1. 安裝 npm 套件
npm install
  1. 安裝 nodemon 套件
npm i -g nodemon 
  1. 安裝完畢後,設定環境變數連線 MongoDB
MONGODB_URI=mongodb+srv://<Your MongoDB Account>:<Your MongoDB Password>@cluster0.xxxx.xxxx.net/<Your MongoDB Table><?retryWrites=true&w=majority
  1. 加入預設帳密到資料庫
npm run seed
  1. 啟動伺服器,執行 app.js 檔案
npm run dev
  1. 當 terminal 出現以下字樣,表示伺服器與資料庫已啟動並成功連結
Express is running on http://localhost:3000

使用工具

  • Visual Studio Code - 開發環境
  • Express - 應用程式架構
  • Express-Handlebars - 模板引擎
  • MongoDB - 資料庫

Contributor - 專案開發人員

AlanChiangg

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors