Skip to content

A simple application that generates motivational phrases randomly, they come from a JSON-API made with Express.js.

License

Notifications You must be signed in to change notification settings

drlncode/Motivational-Phrases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motivational phrases generator.

Instalation

1. Clone or fork the repo:

git clone https://github.com/drlncode/Motivational-Phrases

2. Enter the project

cd Motivational-Phrases

3. Install the dependencies

npm install or pnpm install

Usage

1. Run the next command:

npm run dev

API

  • The API is a very simple API-JSON that only consists of one endpoint, which is:
https://motivational-phrases-demo.vercel.app/phrases

1. Make a request to the API.

  • To make a request to the API and then consume it, do the following:
const URL = 'https://https://motivational-phrases-demo.vercel.app/phrases';

fetch(URL)
    .then(response => response.json())
    .then(json => {
        // Whatever you're going to do to consume it.
    })
    .catch(err => console.error);

Contribute

  • Feel free to make any contribution to the project, whether it's adding a feature to the project or adding phrases to the json in app/data/phrases.json. Everything is welcome.

About

A simple application that generates motivational phrases randomly, they come from a JSON-API made with Express.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published