Development of access management system for major facilities using smart phone and beacon sensor (BLE)
2022.08.08. ~ 2022.10.27. (About 3 month)
Copyright 2022. Hannam University, SMART BeaconTeam(HCS-Beacon Contributor) All of source cannot be copied without permission.
-
$ cd .\FE\my-app (my-appํด๋๊น์ง ์ด๋)
-
$ npm i (ํ์ํ ํ์ผ ์ค์น)
-
make ".env" file (my-appํด๋์ .envํ์ผ ์์ฑ& ํ๊ฒฝ ๋ณ์ ์ฝ์ )
-
$ npm next build (๋ฐฐํฌ ๋ฐ ์ค์น)
-
$ npm start (์คํ)
-
๋ผ์ฆ๋ฒ ๋ฆฌํ์ด์ node.js ์ค์น
- Install node.js on Raspberry Pi
-
๋ผ์ฆ๋ฒ ๋ฆฌํ์ด์๋ HW ํด๋๋ง ๋ค์ด๋ก๋ ํฉ๋๋ค.
- Download only HW folder to Raspberry Pi
-
๋ค์ด๋ก๋ํ ํด๋ ๊ฒฝ๋ก(/'๋ค์ด๋ก๋ํ ๊ฒฝ๋ก'/HW)์์ ํฐ๋ฏธ๋์ ์ฝ๋๋ค.
- Open terminal in downloaded folder path
-
npm i ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ๋ฉด ํ์ํ ํจํค์ง๋ฅผ ์๋์ผ๋ก ์ค์นํฉ๋๋ค.
- Input $ npm i command line in terminal
-
client.js ํ์ผ ์๋ถ๋ถ ์ฃผ์์ ํ์ธํ์ฌ .env ํ์ผ์ ์์ฑํ์ฌ ์์ฑํฉ๋๋ค.
- Check comment Client.js file ์๋ถ๋ถ์ and Make .env file edit
-
์๋ฒ๊ฐ ์๋๋์ด์๋ ์ํ์์ ๋ค์ด๋ก๋ํ ํด๋ ๊ฒฝ๋ก(/'๋ค์ด๋ก๋ํ ๊ฒฝ๋ก'/HW)์์ sudo node client.js ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ๋ฉด ํ๋ก๊ทธ๋จ์ด ์คํ๋ฉ๋๋ค.
- When the server is executing, type the commend sudo node client.js into the terminal.
-
$ cd BE (BE ํด๋๊น์ง ์ด๋)
-
$ npm i (ํ์ํ ํ์ผ ์ค์น)
-
make ".env" file (BEํด๋์ .envํ์ผ ์์ฑ& ํ๊ฒฝ ๋ณ์ ์ฝ์ )
-
Start mariaDB (mariaDB ์คํ)
-
$ npm run start (์๋ฒ ์คํ)
- Please Turn on mariaDB before server start!