https://github.com/ipuppet/iot_server
https://github.com/ipuppet/iot_server
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ipuppet/iot_server
- Owner: ipuppet
- Created: 2024-08-29T13:20:15.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T17:08:11.000Z (9 months ago)
- Last Synced: 2024-09-13T23:07:12.920Z (9 months ago)
- Language: Python
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CITS5506 IoT Project: Server
## Install Dependencies
Clone the repository and navigate to the `iot_server` directory.
```shell
git clone https://github.com/ipuppet/iot_server
cd iot_server
```There are two ways to install the dependencies: using `pip` or using `docker`.
### Use Pip
```shell
pip install -r requirements.txt
```#### Init Database
```shell
./initdb.sh
```#### Reset Database
```shell
./resetdb.sh
```#### Run Server
```shell
python manage.py runserver
```### Use Docker
This will create a docker container named `cits5506-server`.
**Note:** The `build.sh` script will first remove any existing containers with the same name.
```shell
bash ./build.sh
```This will automatically initialize the database if it does not exist.
#### Reset Database
```shell
bash ./build.sh reset