Giter VIP home page Giter VIP logo

smartbrain-front-end's Introduction

SmartBrain Web App

Introduction

SmartBrain is a web application where users can submit pictures URLs to detect faces. To submit a picture, first you have to register yourself in the app. The web app is capable of detecting multiple faces in a picture. In each profile, the number of submissions are registered as entries.

The tech stack used to develop this application is the following:

  • React.js
  • Node.js
  • Express.js
  • PostgreSQL

The front end was developed using React.js and it fetches data from the Clarifais API face detection AI to display boxes in faces. The components of the React front end are:

  1. FaceRecognition: displays the submitted image and draws boxes where faces where detected.
  2. ImageLinkForm: displays the form to input URLs.
  3. Logo: this node displays the brain logo with the react-parallax-tilt npm package to produce movement when the user places the mouse cursor on top of it.
  4. Navigation: deals with the navigation bar in the website, showing Sign out or Sign in and Register according to the App.js state.
  5. Rank: element that deals with the display of the number of entries in each users profile.
  6. Register: displays the registration form and performs checks on email and passwords validity using the npm package validator. Additionally, it renders a password strength bar with the package react-password-strength-bar.
  7. Sign in: deals with the sign in form and validates the input by fetching the data from the back end.

The server is a RESTful API built with Express.js that uses knex to connect to the PostgreSQL database. The passwords are protected with bcrypt and stored securely using a hashing algorithm in the database. The back end uses four controllers to handle the different requests and respond accordingly:

  1. image: increases the number of entries in the user profile in the database and responds with the updated entries value.
  2. profile: responds with the user information from the database.
  3. register: stores the user registration data in the database.
  4. signin: validates the sign in information by comparing the submitted data with the databases data.

The web application is deployed in Heroku where I created a PostgreSQL database. The relational database has two tables: login and users. The users table contains the ID (primary key), name, email, entries and joined columns. The login table contains three columns, the ID (primary key), password hash and email. Since the email column was declared as a unique and not null column, the joins can be performed using this attribute.

smartbrain-front-end's People

Contributors

mauroarcidiacono avatar

Watchers

 avatar

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.