Skip to content

Instantly share code, notes, and snippets.

@madhavisolanki
Last active November 11, 2020 12:20
Show Gist options
  • Select an option

  • Save madhavisolanki/bbb0f9e32395c2eef4603c30bc526c1c to your computer and use it in GitHub Desktop.

Select an option

Save madhavisolanki/bbb0f9e32395c2eef4603c30bc526c1c to your computer and use it in GitHub Desktop.

Write a Nodejs app that does the following:

The project is set up & based on Docker.

  • A Custom Auth User model with an extra field such as twitter, linkedin, blog URL fields
  • A Restful API based on nodejs that does the following:
  • Create, Update, Delete and Fetch User details in JSON
  • Authentication based on JWT or passportjs
  • Background job based that can create users asynchronously from a CSV that can contain hundreds of thousands of records.
  • Admin Integration of the said User model and the CRUD operations could be done from the Admin as well.
  • A simple API based on nodejs & elastic search to provide an endpoint where we can search the users from elastic search.

Following are the requirements:

  • Code should be clean, clear and properly formatted.With test cases.
  • The code should be runnable and the install and setup instructions should be clear.
  • The code should be committed to a Github Private repository and invite github.com/madhavisolanki to the repo as collaborators.
  • The database should be PostgreSQL, cache/background Queue could be (Redis) or RabbitMQ.

Let us know if you have any questions. the assignment should be doable in 7 days time period.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment