Skip to content

otsec/backend-interview-node-01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Primarybyte Backend Node Interview

Description:

There are react frontend application with express backend application. App Flow

Express backend application relies on ProspectAI API and designed to verify emails. Backend provides two endpoints:

  • GET /email-verifications - returns an email verification history.
  • POST /email-verifications - sends new email to ProspectAI API.

All email verifications results stores to database available in docker stack. The database schema consist of 2 tables: email and email_verification.

App Flow

React frontend application allows customer:

  • browse email verification history App Flow
  • preview email verification details App Flow
  • add verify new email App Flow

Application infrastructure is launching with docker-compose.yml: docker-compose up -d. Postman Collection is available in ./postman

Getting Started

Installation

  1. Copy .env.dist > .env
  2. Fill PROSPECT_API_KEY, PROSPECT_BASE_URL with given values.
  3. Run docker-compose up -d

Tasks

  1. Fill result saving class with necessary fields on POST:/email-verification.
  2. Implement server side validation for requested email on POST:/email-verification.
  3. Implement bulk processing on POST:/email-verification.
  4. Implement server side pagination on GET:/email-verification
  5. Advanced: implement async processing on POST:/email-verification (ideas: queue, db & cron script, redis)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages