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!