/Brain-console

Web application that shows the brainwave data fetched from database by id.

Primary LanguageTypeScriptMIT LicenseMIT

What is Brain-console

Web application that shows the brainwave data fetched from database by id.

demo

How it works

how it works

  • Frontend: Next.js, SCSS,
  • Backend: Nest.js, GraphQL
  • Database: MySQL(Docker), Google Cloud Storage(Docker)

Run

0. Initial setup

Add your own CSV brain data file to the directory data/sample-bucket/ with the name of sample-1.csv ).


The CSV file should be formated with two columns time, data.

Example:

time,data
0,750.526803
0.005,1185.574054
...

1. Run virtual database using mysql and google cloud storage in docker.

docker-compose up -d

At initial running, initial data with sample-1.csv file is supposed to be created in mysql.


2. Run web application.

  1. For client, cd client && yarn dev (Access: http://localhost:3000)

  2. For server, cd server && yarn start (Access: http://localhost:3300)

  3. To see playground of graphQL, access http://localhost:3300/graphql


3. Access your brainwave data.

By specifing id on uri, you will get the brainwave data you want.

http://localhost:3000/{id}

({id} is compatible with auto-increase id in mysql.)