Getting Started
Grizzly is developed by Spring Boot 2.6 and above , it requires Java 11 or above, mongo 3.6 or above.
To start mongo, you can use this docker-compose.yml file :
version: '3'
services:
mongodb:
image: mongo:4
container_name:
mongodb
ports:
- "27017:27017"
restart:
always
Let’s start mongo by spinning up the containers using the docker-compose command :
$ docker-compose up -d
we’re gonna compile, test & package our Java projects using this command :
$ mvn clean install
We should launch this command in our projects in this order
1- grizzly api common : https://github.com/codeoncesoftware/grizzly-api-common
2- grizzly api core : https://github.com/codeoncesoftware/grizzly-api-core
3- grizzly api runtime : https://github.com/codeoncesoftware/grizzly-api-runtime
4- grizzly api gateway : https://github.com/codeoncesoftware/grizzly-api-gateway
Let’s now start our projects with this command :
$ mvn spring-boot:run -Dspring-boot.run.profiles=local
Also, you can launch your projects with docker using the command:
$ docker build -t grizzly/grizzly-core .
$ docker run grizzly/grizzly-core
5- grizzly api runtime function : https://github.com/codeoncesoftware/grizzly-api-runtime-function
To launch The grizzly runtime function you need to follow these mini steps
5.1 You need to have a Graal VM runtime instead of the oracle Java Developement Kit here’s the url to download Graal VM on your machine: https://www.graalvm.org/downloads/ where you can choose the version and the platform
5.2 You need to run your this command on your terminal as an adminstrator in order to support JavaScript language:
$ gu install js
5.3 In order to build then run grizzly runtime function on your local machine you need to run these 2 commands:
$ mvn clean install
$ mvn quarkus:dev
Then, the FrontEnd of grizzly API is represented by :
1- grizzly api authorization : https://github.com/codeoncesoftware/grizzly-api-authorization
2- grizzly api angular : https://github.com/codeoncesoftware/grizzly-api-angular
We can build our projects with this command :
$ npm install
Let’s now start our projects with this command :
$ ng serve
The navigate to http://localhost:4500/ for grizzly api authorization and http://localhost:4900/ for grizzly api angular. If you make changes to any of the source files, the application will automatically reload.