Skip to content

VESTBERRY/Test-backend-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test backend assignment

Task is to create backend application in Node.js using any SQL database. This application should communicate with frontend via GraphQL. There is no need to do frontend in this assessment. You can use any libraries you may consider useful. The assessment is to create an application for book catalogue.

Use cases:

  • User should be able to register and log in.
  • Logged in User should be able to add new book, edit existing book, and delete book. User should be able to “travel back” in time and see older state of any book.
  • Anonymous user should be able to find some book by author name or book title.
  • Pagination is not required but is big plus.

Minimum data requirements:

  • User: email, password
  • Book: title, author, year of publication, genres, rating

You can model SQL schema as you consider best. The same applies for GraphQL schema.

Additional informations:

  • Feel free to use any additional library you might need for completing this project, or change structure or anything
  • We would like to see, how will you solve this task in terms of end result precision, code quality & readability

Sample project Requirements

Just install Deno 2 if you don't have it already

curl -fsSL https://deno.land/install.sh | sh

Some tips for Deno

Installation

After confirming that your environment meets the above requirements, clone vestberry by doing the following:

$ git clone git@github.com:VESTBERRY/Test-backend-assignment.git <directory>
$ cd <directory>

When that's done, install the project dependencies. It is recommended that you use Yarn for deterministic dependency management, but npm install will suffice.

$ deno install  # Install project dependencies

Running the Project

After completing the installation step, you're ready to start the project!

$ deno run dev # Start the development server

After this you can open in your browser the GraphiQL at http://localhost:8000/graphql

While developing, you will probably rely mostly on deno run dev; however, Deno gives you more commands to youse

command Description
deno lint Lints the project for potential errors
deno lint --fix Lints the project and fixes all correctable errors

About

Test assigment for backend developer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors