This app allows to simulate restaurant with dishes and orders
To get a local copy up and running follow these simple example steps.
- You need docker and docker-compose to be installed on your machine.
- Also you need maven to build app. Alternately you can use jar from release.
- Clone the repo
git clone https://github.com/TimNekk/OrderFlow
- Build with Maven
mvn clean package -DskipTests
- Rename
.env.dist
file to.env
mv .env.dist .env
- Generate JWT secret key
- Got to https://allkeysgenerator.com/
- Choose
Encryption key
and256-bit
- Check yes for
Hex
-
Fill
.env
with corresponding data -
Run app
docker-compose up --build
- Swagger UI is available at http://localhost:8080/swagger-ui/index.html
- PGAdmin is available at http://localhost:5050
- RabbitMQ is available at http://localhost:15672
Endpoint are protected with JWT, so make sure to register first and authorize using Bearer token.
MANAGER role allows to access api/v1/dish
and api/v1/dishes
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or directly create a pull request after you edit the README.md file with necessary changes.
- Please make sure you check your spelling and grammar.
- Create individual PR for each suggestion.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request