In this challenge you are going to design the backend of a system that centralizes the services and orders of a restaurant chain that has different branches in the city.
To get a local copy up and running follow these steps.
- IntelliJ Community https://www.jetbrains.com/idea/download/
- Postman https://www.postman.com/downloads/
- Clone the repository
- Change directory
cd messagemicroservice-pragma-powerup
- Create a .env file in resources
TWILIO_ACCOUNT_SID=<your twilio account sid> TWILIO_AUTH_TOKEN=<your twilio auth token> TWILIO_PHONE_NUMBER=<your twilio phone number>
- Open Swagger UI and test the endpoints, you must have a twilio account to send messages and be authenticated to access the endpoints
POST http://localhost:8093/message/send Content-Type: application/json { "message": "string", "receiver": "string" }
- Right-click the class MessageMicroserviceApplication.java and choose Run
- Open http://localhost:8093/swagger-ui/index.html in your web browser
- Right-click the test folder and choose Run tests with coverage