Sentency
This repository is built by combining multiple external APIs. Basically, it aims to teach English words to users by creating sentences. Lingua Robot is used for the definitions of the words and Google Translate API is used to translate the user's sentences with that word. The reviewing algorithm has not been designed yet, and it is done with simple date checks. The learning process of a word is as follows:
- Search for the word
- Add the word to the learning list
- Make a sentence with the word
- Select the difficulty of the word
- Regularly review the words in the list
In the future, the application will be made to run on AWS cloud systems with native image. The learning algorithm will be improved and users will be able to use different materials (image, gif, video and so on.) while learning. At the moment, it is only designed for mobile browsers, but web browser and mobile native application development will also be done.
- JDK 11
- Gradle
- Node > v16
- Docker
- Creating google service account.
- Creating google OAuth Credentials.
- Subscribing WordsAPI on RapidAPI.
Variable | Description |
---|---|
DATABASE_DB-KIND | Database type. See also. |
DATABASE_USERNAME | Database username |
DATABASE_PASSWORD | Database password |
DATABASE_URL | Database vertx url. See also. |
GOOGLE_PROJECT-ID | Google project id |
GOOGLE_APPLICATION_CREDENTIALS | Google service accounts credential file path. See also |
GOOGLE_CLIENT-ID | For google login. See also |
LR_RAPID_API_URI | Rapid api base uri. See Also |
LR_RAPID_API_HOST | Rapid api host. See Also |
LR_RAPID_API_KEY | Rapid api key. See Also |
- Open Google Console
- Create Project.
- Enable Cloud Translation API for project.
- Create service account.
- Add
Cloud Translation API User
permission to service account for using Google Cloud Translation Api - Create service account key. Copy downloaded json file to project path.
- Give the absolute path of this json file to
GOOGLE_APPLICICATION_CREDENTIALS
as an environment variable.
- Go to https://console.cloud.google.com/apis/credentials?project=PROJECT_NAME
- Create OAuth Client ID.
- Adjust OAuth consent screen.
- Adjust client ID to
GOOGLE_CLIENT-ID
as an environment variable.
- Go to Lingua Robot
- Subscribe API.
- Set host and key as environment variables.