Skip to content

gustavo-bordin/random-quotes-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Random quotes generator

1. Used tools

  • Sequelize
  • Express
  • Dotenv
  • pg / pg-hstore

2. Setting up

$ git clone
  • 2.2 Enter in created folder:
$ cd random-quotes-generator
  • 2.3 Create a .env file for your enviroment variables:
$ mv .env.example .env
  • 2.4 Fill the created file with your database credentials and choose an unallocated port to run the server.

  • 2.5 Run the server

$ node src/server.js

3. Listing quotes

You have 3 filtering options for getting quotes, these are:

  • language
  • author
  • keyword

You can use one of them or even mix the way you want to get the best quotes for you. Examples:

http://localhost:PORT?language=pt_br
http://localhost:PORT?language=pt_br&author=Gustavo Bordin
http://localhost:PORT?language=pt_br&author=Gustavo Bordin&keyword=love

About

๐Ÿ“œ An API to gerenate quotes based on a keyword

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published