![iok-express banner](iokloud-logo.png)

# iok-express

### a IoT platform based on expressjs, passportjs, mosca and mongodb.

In simple words the purpose of any IoT device is to connect with other IoT devices and applications (cloud-based mostly) to relay information using internet transfer protocols.[http://internetofthingswiki.com]

The gap between the device sensors and data networks is filled by an IoT Platform. Such a platform connects the data network to the sensor arrangement and provides insights using backend applications to make sense of plethora of data generated by hundreds of sensors.

In light of the possibilities that internet of things is offering tech companies has started capitalizing it. There are many IoT platforms available now that provide option to deploy internet of things applications on the go. this is a try to have your own IoT platform.

### Steps to run locally

firstly besure mongodb is running on localhost:27017

$ git clone https://github.com/iokloud/iok-express/

$ cd iok-express

$ npm install

$ npm start





![iok-express banner](iokloud-logo.png)

# iok-express

### a IoT platform based on expressjs, passportjs, mosca and mongodb.

In simple words the purpose of any IoT device is to connect with other IoT devices and applications (cloud-based mostly) to relay information using internet transfer protocols.[http://internetofthingswiki.com]

The gap between the device sensors and data networks is filled by an IoT Platform. Such a platform connects the data network to the sensor arrangement and provides insights using backend applications to make sense of plethora of data generated by hundreds of sensors.

In light of the possibilities that internet of things is offering tech companies has started capitalizing it. There are many IoT platforms available now that provide option to deploy internet of things applications on the go. this is a try to have your own IoT platform.


## IOK-Express API
The Thing API defines a set of services to create, update or control any things. 

```
POST /signup
POST /signin
POST /thing
GET /thing
GET /thing/:clientid
PUT /thing/:clientid
DELETE /thing/:clientid
```

test our secure REST API using <a href="https://www.getpostman.com/docs/postman/launching_postman/installation_and_updates">Postman</a> REST Client or Curl command. You can install Postman for Chrome extension.
Now, open Postman then enters method, address (http://localhost:3000/api/signup) and body parameters for create or signup new user. After click Send button and successfully created a new user, you should see this message.


## Steps to run locally

firstly besure Mongodb is running on localhost:27017

Install in linux:
```
$ npm install -g mongodb
```

Then, in a new terminal window, start the MongoDB daemon:
```
$ sudo mongod
```



$ git clone https://github.com/iokloud/iok-express/

$ cd iok-express

$ npm install

$ npm start


for invoking the list of oyur created things as locally;
```
GET http://localhost/thing/:id
```




Edit hot to call API
Edit hot to call API