Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Commit 2fc4354

Browse files
LilianbazantaySigmanificient
authored andcommitted
refactor(readme): move exemples into separate files
1 parent 27c3943 commit 2fc4354

File tree

3 files changed

+43
-49
lines changed

3 files changed

+43
-49
lines changed

README.md

Lines changed: 3 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -44,58 +44,12 @@ The system is composed of three main parts:
4444

4545
### Installation
4646

47-
- **Step 1**: Go to back and a create a \`config.toml\` file. Fill it with:
47+
- **Step 1**: Go to back and a create a \`config.toml\` file. Fill it based on the data in exemples/exemple_config. In the provider section, replace the client_id and client_secret with your client_id and client_secret. Repeat for every provider. (They can be found in back/app/routes)
4848

49-
[security]
50-
jwt_secret = "hello_world_3301@083280948390"
51-
52-
[db]
53-
uri="sqlite+aiosqlite:///app.db"
54-
55-
[providers]
56-
57-
[providers.discord]
58-
client_id = id_exemple #1418965246885761106
59-
client_secret = secret_example #"JgGHjCxByc56UweRxbS978hWq9tpRbs4"
60-
61-
[providers.github]
62-
\# ...
63-
64-
In the providers, replace the client_id and client_secret with your client_id and client_secret. Repeat for every provider. (They can be found in back/app/routes)
65-
66-
- **Step 2**: Go to front/android and create a \`gradle.properties\` file. Fill it with those informations:
67-
68-
\# Project-wide Gradle settings.
69-
70-
\# IDE (e.g. Android Studio) users:
71-
\# Gradle settings configured through the IDE *will override*
72-
\# any settings specified in this file.
73-
74-
\# For more details on how to configure your build environment visit
75-
\# http://www.gradle.org/docs/current/userguide/build_environment.html
76-
77-
\# Specifies the JVM arguments used for the daemon process.
78-
\# The setting is particularly useful for tweaking memory settings.
79-
org.gradle.jvmargs=-Xmx1536m
80-
81-
\# When configured, Gradle will run in incubating parallel mode.
82-
\# This option should only be used with decoupled projects. More details, visit
83-
\# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
84-
\# org.gradle.parallel=true
85-
86-
\# AndroidX package structure to make it clearer which packages are bundled with the
87-
\# Android operating system, and which are packaged with your app's APK
88-
\# https://developer.android.com/topic/libraries/support-library/androidx-rn
89-
android.useAndroidX=true
90-
RELEASE_STORE_FILE=/build/apk_key.jks
91-
RELEASE_STORE_PASSWORD=xxxxxx
92-
RELEASE_KEY_ALIAS=alias
93-
RELEASE_KEY_PASSWORD=xxxxxx
94-
95-
Replace both of the "xxxxxx" with an actual password. That password need to be at least 6 characters long.
49+
- **Step 2**: Go to front/android and create a \`gradle.properties\` file. Fill it with the informations in exemples/exemple_gradle. Fill `RELEASE_STORE_PASSWORD` and `RELEASE_KEY_PASSWORD` with your own password. The two must have an identical one.
9650

9751
- **Step 3**: In your terminal run `keytool -genkey -v -keystore apk_key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias alias;`.
98-
It will ask for a keystore password, put the one you chose for the first step. It will follow by asking more information; those information don't need to be necesarilly true.
52+
It will ask for a keystore password, put the one you chose for the second step. It will follow by asking more information; those information don't need to be necesarilly true.
9953
Enter 'y' to confirm the datas you entered.
10054

10155
- **Step 4**: run `docker build -t test -f android/Dockerfile . && docker run test:latest`.

exemples/exemple_config

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[security]
2+
jwt_secret = "hello_world_3301@083280948390"
3+
4+
[db]
5+
uri="sqlite+aiosqlite:///app.db"
6+
7+
[providers]
8+
9+
[providers.discord]
10+
client_id = id_exemple #1418965246885761106
11+
client_secret = secret_example #"JgGHjCxByc56UweRxbS978hWq9tpRbs4"
12+
13+
[providers.github]
14+
\# ...

exemples/exemple_gradle

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Project-wide Gradle settings.
2+
3+
# IDE (e.g. Android Studio) users:
4+
# Gradle settings configured through the IDE *will override*
5+
# any settings specified in this file.
6+
7+
# For more details on how to configure your build environment visit
8+
# http://www.gradle.org/docs/current/userguide/build_environment.html
9+
10+
# Specifies the JVM arguments used for the daemon process.
11+
# The setting is particularly useful for tweaking memory settings.
12+
org.gradle.jvmargs=-Xmx1536m
13+
14+
# When configured, Gradle will run in incubating parallel mode.
15+
# This option should only be used with decoupled projects. More details, visit
16+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17+
# org.gradle.parallel=true
18+
19+
# AndroidX package structure to make it clearer which packages are bundled with the
20+
# Android operating system, and which are packaged with your app's APK
21+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
22+
android.useAndroidX=true
23+
RELEASE_STORE_FILE=/build/apk_key.jks
24+
RELEASE_STORE_PASSWORD=xxxxxx
25+
RELEASE_KEY_ALIAS=alias
26+
RELEASE_KEY_PASSWORD=xxxxxx

0 commit comments

Comments
 (0)