Code Monkey home page Code Monkey logo

assignmentsubmissionnoapp's Introduction

assignmentSubmissionNoApp

Assignment details: Create a set of APIs using Node(Express) + MongoDB(mongoose) which should implement the following features.

  • Authentication module using jwt
  • Upload and save contact (csv file) through api in db using service workers.
  • contacts sample format: name, phone, email, linkedin profile url

submission description

  • Created APIs for authentication using jwt using nodejs, mongodb, expressjs
  • Uploaded csv contact by using background sync to intercept POST request in service worker
  • to store multiple POST requests hitted, i used IndexedDb
  • steps to set up locally

    npm install
    npm run dev
    
  • the server will run on localhost:3100
  • Login Credentials
  • email: [email protected] | Password: 12345
  • APIs

    use postman to hit the apis...

  • POST @/api/auth/register : to register user, body of request = { name, email, password }
  • POST @/api/auth/login : to login user, body of request = { email, password }
  • POST @/api/auth/authenticate : to authenticate the jwt token, body of request = { token }

  • GET @/api/contacts : to list all the contacts in the collection
  • POST @/api/contacts : to add new contact to the collection, body of request = { name, phone, email, linkedin }
  • assignmentsubmissionnoapp's People

    Contributors

    amanscisingh avatar

    Watchers

    Kostas Georgiou avatar  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.