Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ wikiday Public archive

Print historical fact based on dates using API.

License

Notifications You must be signed in to change notification settings

melogtm/wikiday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WikiDay

Allows users to get an important events in history - based on month and day - through a simple and interactive interface.

Screenshots

App Screenshot

Documentation for api/

Open your terminal, go to api/ and install the dependencies with

npm i

Then, you want to start the index.js to run the api on port 9000:

npm start

API Usage

/ - Return an random event using today as reference.

/event - Same as /.

/birth - Return a random birth using today as reference.

/death - Return a random death using today as reference.

/:type/+date - Return your selected type based on the date on params e.g. /death/xxxx-02-01 will return a random death that ocurr on February 1.

Installation

Start by installing the dependencies for both client and api

# client/

npm i 

# api/

npm i 

After that, start the api by going in the folder and

npm start 

Do the same for client

npm start

It will open localhost:PORT automatically for you!

Lessons Learned

API Integration with React and pure-CSS, besides applying a basic routing with react-dom-router.

License

MIT

About

Print historical fact based on dates using API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published