Git Product home page Git Product logo

glagius / brn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brain-up/brn

0.0 0.0 0.0 88.29 MB

The idea of this project is to design and make a web-application (with scientist cooperation) which would contained series of special audio trainings to support people with central auditory skills deficit to allow them to train them to listen better.

Home Page: https://brainup.site

License: Creative Commons Zero v1.0 Universal

Shell 0.02% JavaScript 9.95% HTML 1.34% CSS 1.72% Kotlin 37.66% Dockerfile 0.01% RAML 1.49% Makefile 0.03% TypeScript 16.36% SCSS 1.15% Handlebars 30.28%

brn's Introduction

Gitpod ready-to-code

Brain Up!

This project is a web-application being developed to support people with a deficit in their central auditory skills with or without hearing loss, i.e. users of cochlear implant or hearing aids. Intended to be used by children older than 7 years, adults, elderly subjects; anyone who wants to improve their auditory skills, training their brain to improve the understanding of what is heard. It is projected to contain several series of media exercises, which should be added incrementally. The tool structure and usage is organized as other tools like www.uchi.ru.

Our current version is here : http://brainup.site && http://31.184.253.199/ (test user [email protected] password). Now you as a user can register and start doing exercises.

Our road map https://github.com/Brain-up/brn/blob/master/roadmap.md.

SCIENTIFIC SOURCES

Published ARTICLES about our project

WHY JOIN OUR PROJECT AS A DEVELOPER?

We use latest technologies and best practices, so developers will get to know new tools and their usage, obtaining a useful experience. We will review your code, give you advice to improve it and listen to your suggestions. Most importantly being an open source project you can show your work in it to any person interested, proving your development expertise with actual examples of your work flow and code samples in a live application.

WE ARE LOOKING FOR

  1. Front-end developers: Ember, Angular.
  2. Server-side developers: Kotlin and Java. Components, REST and algorithms.
  3. DevOps: Continuous integration and delivery.
  4. UX: Creative designers for UX research and prototype testing. Your ideas how to improve user retention are welcome.
  5. Paintest: for creation pictures for exercises.

Join us! Learn something new, try your skills, prove yourself, get experience and get ahead!

TOOLS WE USE

  • Back-end: KOTLIN + Spring boot. Rest api as integration layer.
  • Front-end : TBD - Ember, Angular.
  • DB: Postgres13.
  • TestContainers for running integration tests.

HOW TO JOIN?

  1. for epam developers: Just click on “JOIN TEAM” button in https://contribute.epam.com/products/143 and we will get in touch with you shortly.
  2. for all other developers: you can send an email to [email protected] or directly to [email protected] describing your interests or any questions you may have. our project skype chat: https://join.skype.com/jxSiWkgwT2x1

GETTING STARTED!

Resources:

Documentation

https://github.com/Brain-up/brn/wiki || https://kb.epam.com/display/EPMLABSBRN/Brn+project+documentation

Jira

https://github.com/Brain-up/brn/issues || https://jira.epam.com/jira/secure/RapidBoard.jspa?rapidView=103360&view=planning

Jenkins (only for epamers now)

https://kb.epam.com/pages/viewpage.action?pageId=885110636

Coding standarts

https://github.com/Brain-up/brn/wiki/Coding-Standards || https://kb.epam.com/display/EPMLABSBRN/Coding+standards

Development:

Development prerequisites

  1. FrontEnd: Install node v12 or above https://nodejs.org/en/download/
  2. FrontEnd: Install yarn 1.19 or above https://yarnpkg.com/lang/en/docs/install
  3. FrontEnd: In order to make any commit you need Husky dependency be installed (you can use frontend build to get it)
  4. BackEnd: Install Docker https://hub.docker.com/search/?type=edition&offering=community
  5. BackEnd: Idea

Start Front Angular Part - admin application

Go to location where the project is download for example C:\brn\brn\frontend-angular

📄 See here

Start Front Ember Part - user application

Run following commands: linux/mac:

cd ./frontend/ && yarn && node ./node_modules/.bin/ember serve

for windows:

 ./node_modules/.bin/ember serve --port=4201

FE dev server now accessible at http://localhost:4200/

Database running:

  1. Install docker to your machine. The project uses postgres 11.5. Documentation Currently for local development we use postgres docker image To install docker use:

2.1 To run docker db image use the following command:

  • on linux: docker run -p 5432:5432 -e POSTGRES_DB=brn -e POSTGRES_PASSWORD=$PG_PASSWORD -e POSTGRES_USER=$PG_USER postgres:11
  • on windows: docker run --name postgres_dev -d -p 5432:5432 -e POSTGRES_DB=brn -e POSTGRES_PASSWORD=$PG_PASSWORD -e POSTGRES_USER=$PG_USER postgres:11 $PG_PASSWORD and $PG_USER are environment variables and could be replaced directly or added to your operation system how to add in win10.

2.2 Alternatively, you can just replace the variables by "admin", the default user and password for development: docker run --name postgres_dev5 -d -p 5432:5432 -e POSTGRES_DB=brn -e POSTGRES_PASSWORD=admin -e POSTGRES_USER=admin postgres:11

Back end Kotlin Part:

  1. Run command 'gradle build' from main project folder to build project with tests.
  2. Application.kt is the main class to run application from Idea for example.
  3. post http://localhost:8081/api/brnlogin use in body { "grant_type": "password", "username": "[email protected]", "password": "password" }
  4. then you can call all other end-points from Postman collection https://www.getpostman.com/collections/2df39c7c6f7f26a63d85 like http://localhost:8081/api/exercises/142 end-point specification is here: https://github.com/Brain-up/brn/blob/master/api-contract/api.raml
  5. for logout use http://localhost:8081/api/logout

Note that if you are using IntelliJ, you may want to use version 2019.2 and later to avoid issues with new kotlin plugin.

Deploy Application USING DOCKER COMPOSE:

(back-end part and front-end parts, but it is rather slow. it is better to use GitPod)

  1. Open file docker-compose.yml and change SPRING_PROFILE to "dev".
  2. From console, from project's folder, execute:
docker-compose up --build

Alternatively, use daemon mode (no console output):

docker-compose -d up --build

REST API will be accessible at http://localhost:8081/api/swagger-ui.html

docker useful command: docker ps -a -q for show all containers docker stop idContainer for stop running container docker rm $(docker ps -a -q) Remove all stopped containers

Development tips:

  1. Get a task assigned in JIRA (for epamers) or issue (https://github.com/Brain-up/brn/issues) you choosed and discused with @ElenaSpb.
  2. Create branch from dev with the codename of your task, i.e. EPAMLABSBRN-1.
  3. Implement your task, do not forget to write tests. Remember to follow project's coding standards: https://github.com/Brain-up/brn/wiki/Coding-Standards or https://kb.epam.com/display/EPMCOSRINT/Coding+standarts .
  4. Create pull request with task name and description about what was done.
  5. Notify the team in our skype chat and wait for reviews. At least one reviewer is necessary, but more can be added in a case by case basis.
  6. The task gets merged by a project mantainer.
  7. check that build job on jenkins passes successfully.

Code style:

  1. Please refer for details to kb resources: https://github.com/Brain-up/brn/wiki/Code-Style or https://kb.epam.com/display/EPMCOSRINT/Code+style
  2. Always use Ctrl+Alt+L in IDEA to update code formatting before committing!
  3. Use gradlew ktlint command to check code style. If this task fails, the related report with error details can be found in the 'build\reports\ktlint' folder.
  4. It is also possible to use gradlew ktlintFormat command to fix code style errors automatically.
  5. Please note that if gradlew ktlint task fails, project build will fail also.

Branches:

Use format 'EPMLABSBRN-# issue description' or 'Merge description'. Issue number must be in range [0-1999]

Sonar:

  1. https://sonarcloud.io/code?id=Brain-up_brn our project sonar cloud. 2 To view test coveradge locally
    2.1 use jacoco gradle task locally jacocoTestReport 2.2 command line: gradle jacocoTestReport
  2. Pay attention that main local metric would be a little bit different from the one in Sonar cloud.

Thanks for support

  • EPAM for Jira/Confluence, test instance and Jenkins
  • JetBrains for IDEA licenses
  • Selectel for public instance
  • GitHub for code place and actions where we run CICD
  • Yandex for Yandex Speech Kit service and free account to use it

Thanks for contribution!

License

CC0 1.0 Universal https://joinup.ec.europa.eu/licence/cc0-10-universal-cc0-10-public-domain-dedication

brn's People

Contributors

alexfil1983 avatar alextanlan avatar dependabot-preview[bot] avatar dmitriy1fokin avatar dmitriystoyanov avatar egor-shnel avatar elenaspb avatar epm-dev-priporov avatar goopnigoop avatar h1d avatar irishic avatar joshuakeys avatar joshuakeyz avatar komlevdm avatar korneev-andrew avatar koylubaevnt avatar lifeart avatar mikleprog avatar mmelnik avatar nikolai4lazarev avatar pandamorphism avatar rkonoplev avatar saim-doruklu avatar siarheikrystseu avatar siestavie avatar snyk-bot avatar tatandri avatar wikkirin avatar yrakova avatar zinch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.