This repository holds a set of policies, standards, guides, and pipelines to get started with a back-end API. Before writing your first line of code, please take a moment and check out our CONTRIBUTING guide.
- Work in the open: That means that everything we do should be open, should be public. Please, don't create private repositories unless you have a very strong reason. Keeping things public is a must follow rule for BC Government.
- Customer centred services: All the work that's been created is to improve users, customers, and friends usability and experience. Is important to keep that in mind because as engineers sometimes we face technical issues, however, our goal is to have a good product.
- Community based work: Remember that you're not alone. It's very likely that your problem is someone else's problem. Let's figure it out together. So, ask a question using our channels. We have our own Stackoverflow and our Rocket Chat channel.
Here you can find a comprehensive list of all languages and tools that are been used in this service. And also everything you need to get started, build locally, test and deploy it.
- Java REST API
- Testing
- Relational Database
- Secure (Over TCP) Oracle connection through JDBC
- DevOps
- Docker
- Docker Compose
- SonarCloud
- OpenShift
- CI/CD with GitHub Actions
- Tools (Recommendations)
Once you have cloned this repository, can get it running on your computer by typing in the project root directory:
./mvnw spring-boot:run
Then head to http://localhost:8090/actuator/health to check if the service was successfully launched:
the first status
property should have the value UP.
Before writing your first line of code, and learn more about the checks, including tests, please take a moment and check out our CONTRIBUTING guide.
Just run:
docker compose --profile oracle up -d
If you need to change the code, no problem. Once you hit Ctrl+S keys the service will be restarted! Enjoy
This instruction is for VSCode. If you have another IDE, be aware that some steps may change.
All you need to do is to click the "Run and Debug" button on VSCode, then
click the small cog button, to open a new file called launch.json
.
Make sure you have these settings:
"configurations": [
{
"type": "java",
"name": "Debug (Attach)",
"projectName": "OracleAPI",
"request": "attach",
"hostName": "127.0.0.1",
"port": 5006
},
]
Now you can select Debug (Attach)
in the dropdown input and hit run,
click the play button.
As mentioned, we're here to help. Feel free to start a conversation on Rocket chat or ask a question on Stackoverflow.