Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bananiys202024/learn-foreign-languages
Full stack app for learning foreign languages.
https://github.com/bananiys202024/learn-foreign-languages
angular angular-2 bootstrap4 docker docker-compose eclipse google-translator gradle jdk8 log4j mongodb redis spring-actuator spring-actuator-metrics spring-boot spring-data spring-mail spring-security
Last synced: 3 days ago
JSON representation
Full stack app for learning foreign languages.
- Host: GitHub
- URL: https://github.com/bananiys202024/learn-foreign-languages
- Owner: Bananiys202024
- Created: 2019-08-14T17:10:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T08:48:30.000Z (about 2 years ago)
- Last Synced: 2024-11-10T12:49:22.212Z (2 months ago)
- Topics: angular, angular-2, bootstrap4, docker, docker-compose, eclipse, google-translator, gradle, jdk8, log4j, mongodb, redis, spring-actuator, spring-actuator-metrics, spring-boot, spring-data, spring-mail, spring-security
- Language: TypeScript
- Homepage:
- Size: 39.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# learn-foreign-languages
Describe
App for learning English
Screenshots
Frameworks and tools
Java&IDE: JDK8 Eclipse
Backend: Spring Boot, Spring Data, Spring Security
Frontend: Angular, Bootstrap
Database: mongoDB, redis
Build Tool: Gradle
Linux: Arch Linux
Other: Docker, Log4j, Spring Mail, google translator, Spring actuator
Start app
0. Get project
$ git clone https://github.com/Bananiys202024/learn-foreign-languages
cd learn-foreign-languages
1. Start back-end./gradlew bootJar
docker-compose build
docker-compose up
2. Start front-endcd client
npm install
ng serve --port 4203
3. Go to http://localhost:4203/Tutorials "How use" with "Arch Linux"
Docker
Clear all started containers
docker rm -f $(docker ps -a -q)
Start(long note)
./gradlew bootJar
docker-compose build
docker-compose up
Start(short note)
./gradlew bootJar;docker-compose build;docker-compose up;or
sudo ./gradlew bootJar;sudo docker-compose build;sudo docker-compose up;
Redis
Start
redis-cli
Revise all keysredis-cli --scan --pattern '*'
Revise type of key "Anton"type Anton
Check TTL of key "mykey"TTL mykey
Set TTL to key "mykey" in seconds
EXPIRE mykey 10
Delete key "mykey"
del mykey
Read hash key "mykey"
HGETALL mykeyRedis Sets are unordered collections of strings. The SADD command adds new elements to a set. It's also possible to do a number of other operations against sets like testing if a given element already exists, performing the intersection, union or difference between multiple sets, and so forth. Following command create unordered collections "myset"
sadd myset 1 2 3
Get sets or get unordered collections of strings "myset"
smembers myset
Redis is free to return the elements in any order at every call
This is a good time to introduce the set command that provides the number of elements inside a set. This is often called the cardinality of a set in the context of set theory, so the Redis command is called SCARD.
Get number elements of set "myset"scard myset
Mongodb
Show all databases
show dbs;
Use database "tongues"
use tongues
Show tablesshow tables
Show content of table "users"
db.users.find({})
Show content of table "users"
db.users.find()
Show define content of table "users", only with value "Mortal" in column "username"
db.users.find({"username": "Mortal"})Show define content of table "users", only with value "Mortal" in column "username"
and with value IamDisabledUser" in column emaildb.users.find({"email": "IamDisabledUser", "username":"Mortal"})
Get number of lines in table "users"
db.users.count();
Revise content of table "users"db.users.find();
Drop database "tongues"use tongues
db.dropDatabase()
Access
Back-end: http://localhost:8083/
Front-end: http://localhost:4203/