This is a messaging app, similar to a mailbox. It uses Rails, Webpacker, React.js, and SASS.
This project is dockerized. Please, for better setup, install docker and docker-compose.
cp .env.sample .env
docker-compose build
docker-composer run --rm web rails db:setup
Although you don't need to, you may run seed the project with
docker-compose run --rm web rails db:seed.
To run the server and all related services, just run
docker-compose up
# or
docker-compose --rm web
This project uses RSpec as its testing suite.
To run all tests
docker-compose run --rm web rspec
The following endpoints are available:
GET /api/messagesGET /api/messages/:idPOST /api/messagesGET /api/messages/archivesPATCH /api/messages/archives/toggle/:id
This app has, at least, the following emails registered:
renan@email.comwith password123123, and tokenrenanrodrigo@email.comwith password123123, and tokenrodrigo
The request url is going to have the following format
/path/to/resource?user_email=renan@email.com&user_token=renan
You may pass your authentication informations in the headers, as well, like so:
X-User-Email renan@email.com
X-User-Token renan