Skip to content

Commit 22e0e1c

Browse files
committed
Tensorflow api details
1 parent 4cddb0e commit 22e0e1c

File tree

3 files changed

+7
-54
lines changed

3 files changed

+7
-54
lines changed

README.md

+6-50
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,13 @@
1-
Express & ES6 REST API Boilerplate
2-
==================================
3-
4-
This is a straightforward boilerplate for building REST APIs with ES6 and Express.
5-
6-
- ES6 support via [babel](https://babeljs.io)
7-
- REST resources as middleware via [resource-router-middleware](https://github.com/developit/resource-router-middleware)
8-
- CORS support via [cors](https://github.com/troygoode/node-cors)
9-
- Body Parsing via [body-parser](https://github.com/expressjs/body-parser)
10-
11-
> Tip: If you are using [Mongoose](https://github.com/Automattic/mongoose), you can automatically expose your Models as REST resources using [restful-mongoose](https://git.io/restful-mongoose).
12-
13-
14-
15-
Getting Started
16-
---------------
17-
18-
```sh
19-
# clone it
20-
git clone [email protected]:developit/express-es6-rest-api.git
21-
cd express-es6-rest-api
22-
23-
# Make it your own
24-
rm -rf .git && git init && npm init
1+
# Project Details
2+
This is api project part of tutorial on overflow.js over image detection with tensor flow
3+
Got ahead install and run project
4+
Make sure you have latest node version tfjs-node do some issues while installing latest releases
255

266
# Install dependencies
277
npm install
288

299
# Start development live-reload server
30-
PORT=8080 npm run dev
10+
PORT=4000 npm run dev
3111

3212
# Start production server:
33-
PORT=8080 npm start
34-
```
35-
Docker Support
36-
------
37-
```sh
38-
cd express-es6-rest-api
39-
40-
# Build your docker
41-
docker build -t es6/api-service .
42-
# ^ ^ ^
43-
# tag tag name Dockerfile location
44-
45-
# run your docker
46-
docker run -p 8080:8080 es6/api-service
47-
# ^ ^
48-
# bind the port container tag
49-
# to your host
50-
# machine port
51-
52-
```
53-
54-
License
55-
-------
56-
57-
MIT
13+
PORT=4000 npm start

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
"no-unused-vars": 1
2525
}
2626
},
27-
"repository": "developit/express-es6-rest-api",
28-
"author": "Jason Miller <[email protected]>",
27+
"author": "Rakesh Bhatt <[email protected]>",
2928
"license": "MIT",
3029
"dependencies": {
3130
"@tensorflow-models/coco-ssd": "^2.0.0",

src/api/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ export default ({ config, db }) => {
2323
const data = req.body.data;
2424
const type = req.body.type;
2525

26-
console.log(" Type : ", type);
27-
2826
const objectDetect = new ObjectDetectors(data, type);
2927
const results = await objectDetect.process();
3028

0 commit comments

Comments
 (0)