Trash random facebook posts generator.
Every endpoint has this structure:
https://HOST/api/ipsum/text/USER_KEY/POST_LENGTH
- USER_KEY: The key used to select a person (salvini, morandi, mentana ecc.). You can select multiple users using a dash char between the user keys (for example "salvini-morandi").
- POST_LENGTH: The number of words for the post.
An endpoint example is:
https://HOST/api/ipsum/text/salvini/100
Ruby on Rails application, API requests to Facebook developed using Koala gem, admin panel developed using Lato gem, compiled code of the web app.
To start the server run:
bundle install
rails db:migrate
rails s
React.js application, API requests to server developed with Axios, assets compiled with Webpack.
To start the client run:
npm install
npm run start
To compile the client and copy it on server public path run:
npm run build