Skip to content

xNoxious/face-detector-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

face-detector-api

Backend API for an app where you can register, sign in and submit image urls and have the human faces on the image detected by AI and drawn by bounding boxes.

Written in Node.js using PostgreSQL, bcrypt, knex.js and deployed on Heroku.

To run:

  1. Clone the project
  2. Install PostgreSQL if you don't have it already
  3. Run scripts from controllers/database.mssql
  4. Replace knex code from:
const db = knex({
    client: 'pg',
    connection: {
        connectionString: process.env.DATABASE_URL,
        ssl: { rejectUnauthorized: false }
    }
});

to:

const db = knex({
    client: 'pg',
    connection: {
        host: '127.0.0.1',
        port: 5432,
        user: 'YOUR_USER_HERE',
        password: 'YOUR_PASSWORD_HERE',
        database: 'face-detector'
    }
});
  1. run npm install
  2. Replace the DATABASE_URL across the solution with your local database url
  3. Add your own key for process.env.API_KEY_CLARIFAI in the controllers/image.js component
  4. run npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published