Giter Site home page Giter Site logo

andresogando / blogposts Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 310 KB

Interview Test for an outsourcing company. Simple service that consume an API, do parallel requests, cache, etc..

Shell 0.68% JavaScript 94.81% CSS 1.30% Pug 3.21%
nodejs expressjs javascript mongodb lodash redis

blogposts's Introduction

## 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

blogposts's People

Contributors

andresogando avatar

Stargazers

Tuan Duc Tran avatar

Watchers

James Cloos 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.