Inga 🏳🌈
a586a0fbc7
|
2 years ago | |
---|---|---|
client | 2 years ago | |
src | 2 years ago | |
test | 2 years ago | |
.eslintrc.js | 2 years ago | |
.gitignore | 2 years ago | |
.prettierrc | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
nest-cli.json | 2 years ago | |
package-lock.json | 2 years ago | |
package.json | 2 years ago | |
tsconfig.build.json | 2 years ago | |
tsconfig.json | 2 years ago |
README.md
Assignment
Datawrapper Test Project: Backend
Overview
The project is to create a web service that takes screenshots of websites.
The service should expose an API that a client can use to create a new screenshot request, with any given URL as a parameter. The web service should then return a status URL that the client can periodically call to receive updates on the status on its request. The web service should take a screenshot of the provided URL. Once the screenshot was taken, it should be possible for the client to retrieve it. The service should be designed in a scalable fashion, so that it can handle varying amounts of parallel requests in a stable and efficient fashion.
The API notation can be defined as you see fit.
Technology stack
- Server-side code should be written in JavaScript or TypeScript
- It should be possible to run the application locally (ideally as a containerized application, but other technologies are allowed as well)
- Any other tools, technologies or frameworks can be used at your discretion
- A hosted version of the application to test is a plus, but not a must
Delivery
The project should be delivered as a Github repository. It should be possible to run the service locally.
Commands
Installation
$ npm install
Running the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Test
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov