Git Product home page Git Product logo

smart-brain-api's Introduction

SmartBrain-api - Final

Final project for ZTM course

  1. Clone this repo
  2. Run npm install
  3. Run npm start
  4. You must add your own API key in the controllers/image.js file to connect to Clarifai API
  5. Add your own database credentials to server.js line 12

You can grab Clarifai API key here

** Make sure you use postgreSQL instead of mySQL for this code base.

visist https://zerotomastery.io/ for more

smart-brain-api's People

Contributors

aneagoie avatar dependabot[bot] avatar guillaume-n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

smart-brain-api's Issues

process.env.DATABASE_URL = UNDEFINED

HI, Iiam using Heroku and for some reason, when I use process.env.DATABASE_URL to connect I get a connection error. When I set all the credentials manually (URL, username, password, db, port) the connection works. also when i do git push heroku master
can't register.

const db = knex ({
client: 'pg',
password : 'test',
connection: {
host: process.env.DATABASE_URL,
ssl: true,
}
});
reply
app is running on port undefined

I am able to register through postman successfully which is reflected in my database but while registering through frontend nothing is reflected and while signing in through localhost via postman it is showing "TypeError: db.select is not a function"

<title>Error</title>
TypeError: db.select is not a function
   at Object.handleSignIn (C:\Users\Administrator\Desktop\node\controllers\signin.js:2:5)
   at C:\Users\Administrator\Desktop\node\server.js:30:38
   at Layer.handle [as handle_request] (C:\Users\Administrator\Desktop\node\node_modules\express\lib\router\layer.js:95:5)
   at next (C:\Users\Administrator\Desktop\node\node_modules\express\lib\router\route.js:137:13)
   at Route.dispatch (C:\Users\Administrator\Desktop\node\node_modules\express\lib\router\route.js:112:3)
   at Layer.handle [as handle_request] (C:\Users\Administrator\Desktop\node\node_modules\express\lib\router\layer.js:95:5)
   at C:\Users\Administrator\Desktop\node\node_modules\express\lib\router\index.js:281:22
   at Function.process_params (C:\Users\Administrator\Desktop\node\node_modules\express\lib\router\index.js:335:12)
   at next (C:\Users\Administrator\Desktop\node\node_modules\express\lib\router\index.js:275:10)
   at C:\Users\Administrator\Desktop\node\node_modules\body-parser\lib\read.js:130:5

Clarifai API is deprecated and no longer works.

The app.models snippet no longer works even after digging through all of the outdated docs. I tried updating to the grpc methed but the documentation for that is also outdated as the PostModelOutputs is now postModelOutputs?. The region_info.bounding_box is now registering as unknown variable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.