To run this project, the system should have the following prerequisites, if not then click on the link mentioned in the prerequites and install it and then follow the installation steps.
The prerequisites for installing the project :
-
Clone the repository in your GOPATH
$ mkdir -p $GOPATH/src/github.com/Harkishen-Singh/ $ cd $GOPATH/src/github.com/Harkishen-Singh/ $ git clone https://github.com/Harkishen-Singh/Jarvis-personal-assistant.git $ cd Jarvis-personal-assistant
-
Install Go and npm packages.
$ sudo npm install -g http-server mocha mochawesome eslint
Important, execute separately:
$ go get -v -u -d ./...
-
Start the HTTP server. Do not close this terminal
cd view/web && http-server
-
Start the GoLang server. Do not close this terminal
cd service && go run main.go
-
[optional but recommended] For listening to the jarvis voice download and install mplayer in linux or windows, and set the path so that it responds when typed
mplayer
in the terminal or command prompt. -
On running the service, it will occupy the port
:3000
and the front-end will run at port:8080
eslint view/web/app-jarvis.js
# for linting checkscd tests && npm install && mocha tests.js
prerequisite :
golang
with path as globalnode version >= 7.0.0
& correspondingnpm
copy the following instructions in your terminal :
- Move to the desktop app folder
cd view/desktop
- execute the command in the terminal
npm install
- Then run to locally execute jarvis-desktop
npm start