A neural recording app that runs on Chromebook, Windows, Android, iOS and OSX.
To build Spike Recorder Flutter follow these steps.
on OS X
- Please follow the Flutter installation here
- Clone this repository by following this command
git clone https://github.com/BackyardBrains/Spike-Recorder-Flutter.git ./srapp cd srapp
- Install packages
flutter pub get
- Run project
flutter run
on Windows
- Please follow the Flutter installation here
- Clone this repository by following this command
git clone https://github.com/BackyardBrains/Spike-Recorder-Flutter.git ./srapp cd srapp
- Install packages
flutter pub get
- Run project
flutter run
Warning Please follow these additional instructions to run the Web App
- Install Visual Studio Code
- Install Live Server extension
- Find the file
.vscode\extensions\ritwickdey.liveserver-5.6.1\node_modules\live-server\index.js
- Find line
if (cors) { app.use(require("cors")({ origin: true, // reflecting request origin credentials: true // allowing requests with credentials })); }
- Copy this lines and put above the previous line
app.use((req, res, next) => { res.setHeader('Cross-Origin-Opener-Policy', 'same-origin'); res.setHeader('Cross-Origin-Embedder-Policy', 'require-corp'); next(); });
- Rename the main.dart into main_temp.dart, skip changes when asked.
- Rename the main_thresholdweb.dart into main.dart, skip changes when asked.
- Build project
flutter build web
- Open the build/web folder in a new Visual Studio Code window
- Run the live server extension by clicking the Go Live button at the bottom right of the Visual Studio Code window
- To deploy the web app please use
index.js
in folder "server". - To download the Firebase config please follow this link
- Flutter version 3.13.0
- XCode version 14.2 or newer