- Sequelize
- Express
- Dotenv
- pg / pg-hstore
-
First o fall, you must set up the backend, see: https://github.com/gustavobordinho/quotes-crawler
-
2.1 Clone this repo:
$ 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
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