Skip to content

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

License

Notifications You must be signed in to change notification settings

wakkihaya/Brain-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages