Skip to content

famishedfish/BS-project-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BS-project-backend

Backend of ZJU B/S project 2021.

See the frontend.

Environment Prepare

Install node_modules:

npm install

Install mongodb:

brew install mongodb-community@4.2

Create a database using the table file:

mongoimport -d eIoT -c datas --file /mongodump/datas.json --type json
mongoimport -d eIoT -c devices --file /mongodump/devices.json --type json
mongoimport -d eIoT -c users --file /mongodump/users.json --type json

Install mosquitto:

brew install mosquitto

Getting start

Start database

brew services start mongodb-community@4.2

Start MQTT server

brew services start mosquitto

Start project

node bin/www

start analog iot devices

  • Modify iotclient/target/iot.properties (optional)
java -jar iotclient/target/iotclient-1.0.0.jar

About

Backend of ZJU B/S project 2021.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors