andresogando / blogposts Goto Github PK
View Code? Open in Web Editor NEWInterview Test for an outsourcing company. Simple service that consume an API, do parallel requests, cache, etc..
Interview Test for an outsourcing company. Simple service that consume an API, do parallel requests, cache, etc..
## README Hey Reviewer, ## How to run? 1. Open your Terminal & Run command ' Yarn ' to install all the dependencies. 2. Install Redis https://redis.io/download 3. After Installing Redis run: redis-server 4. Run this command to start the server ' Yarn dev ' 5. Run this command to test the server ' Yarn test ' 6. Enjoy & call me to join the team =) ## PORTS REDIS_PORT = 6379 SERVER_PORT = 3001 || 3002 ## Rubric https://drive.google.com/file/d/1f0jiSVTTGtAn8XbHwHcTqPEU-BT4-q6x/view ## Checklist Before submitting your assessment, make sure you have: > An /api/posts route that handles the following query parameters: > tags (mandatory) : any number of comma-separated strings > sortBy (optional) : one of “id”, “reads”, “likes”, “popularity” > direction (optional) : one of “asc”, “desc”, defaults to “asc” > Error handling: Return an error message if: > tags parameter is missing > sortBy or direction has an invalid value > Testing without using our solution API route > Caching (bonus) ## INFO > I will attach a screenshot of my private Git Repo the one I used to complete this task. > This repo is completely private just for my personal use, not intended to share with anyone. ## FOLDER STRUCTURE . ├── README ├── Screen\ Shot\ 2021-09-18\ at\ 2.54.53\ PM.png ├── app.js ├── bin │ └── www.js ├── datasources │ ├── posts.datasource.js │ └── redis.js ├── package.json ├── public │ ├── images │ ├── javascripts │ └── stylesheets │ └── style.css ├── routes │ ├── api │ │ ├── ping │ │ │ └── index.js │ │ └── posts │ │ └── index.js │ └── index.js ├── test │ ├── ping.test.js │ └── posts.test.js ├── utils │ └── index.js ├── views │ ├── error.jade │ ├── index.jade │ └── layout.jade └── yarn.lock 13 directories, 18 files
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.