Skip to content

DanielGorsia/SurpriseMe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SurpriseMe - JS project

INFO

Project name: SurpriseMe

node version : v14.1.0

npm version : 6.14.5

INSTRUCTIONS

In order to run my project, please clone the repo and then run the following commands:

npm install

node main.js

I configured the server on port 3000. Therefore, you should call my endpoint with a "http://localhost:3000" url prefix.

for example, "http://localhost:3000/api/surprise?name=Daniel&birth_year=2007".

I have written two test suites , Unit tests and E2E tests, if you would like to run them use the following command:

npm run test

I have added another surprise for you - useless facts. If this type was chosen, we should return a random useless fact.

This type will be chosen only if the user’s birth year is divided by 3 with no remainders.

Enjoy :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published