Welcome to YourPet, a side project I started with three main goals:
- Don't get too rusty in my coding skills since my current role doesn't have much room to do coding.
- Play around with Kotlin Multiplatform Mobile so I get to explore its potential first hand.
- Play with any other technology I might come across and attracts me. Below you can find some that I have currently in mind (can't promise I will get to try them all, but PR are always welcomed)
- Jetpack compose
- Swift UI
- Hilt
- Flow
- SqlDelight
- GraphQL
- MongoDB
- Shot + Showkase for screenshot testing on Android
- Maestro
- Github actions
- Pact testing
- Google cloud
- Docker
- To run the backend, execute
./gradlew backend:runin the main directory. There are two ways of running the backend:- Using local database. Make sure you are running mongodb in localhost. You can use the provided
container application in the backend directory.
For that you just need to run
./docker-compose upin thebackenddirectory. Bear in mind that in order to create the database with mock data, you can use the flagcreateContentinServer.ktfile. - Testing mode. If you want the backend to retrieve mocked in memory data you can run it with
./gradlew backend:run -Ptesting=true
- Using local database. Make sure you are running mongodb in localhost. You can use the provided
container application in the backend directory.
For that you just need to run
- Then visit
http://localhost:8080/graphqlto reach the playground and documentation.
In order to get the schema file, once the backend is up and running. Execute the following command:
./gradlew downloadApolloSchema --endpoint="http://localhost:8080/graphql" --schema="shared/src/commonMain/graphql/schema.json"