Super awesome app for project 2 called blurryPaper's.
- Do not commit directly to the master branch.
- Have a branch for every feature we implement. Potentially branch out for every task.
- Once you feel confident with the feature merge it with the master branch (we’ll go over this for anyone not familiar with it)
- Commit often since they will be looking at pacing.
- As mentioned above never commit to master
- Format of the commit messages should be as follows:
<commit type>: <message>; <partner1>, <partner2>
commit type:
T - Test
F - Feature/Function/Functionality
B - Bugfix of existing code
M - Merge request into branch
D - (no, no it’s not the D) Any sort of documentation
C - Cleanup. Anything that doesn’t change functionality (removing commented out code, adding comments, etc)
S - Scrum report
message: description of what you have done
partner1, partner2: optional. If you pair programming
T: implemented tests for xyz; Jean, Jin
- First install all the necessary dependencies.
> npm install
- Run an initial webpack build
> webpack
- Start the development server (changes will now update live in browser)
> npm run start
To see the results of your hard work go to: http://localhost:8888/
- Yes even Firefox, Jean
- YAY!!
npm run mock
- The setup guide is based on this. It also provides a refresher on writing .feature files and step definitions.
- Chai assertions this.
- WebdriverIO API this.
- Most packages are included in package.json. The following packages need to be install as global packages as well.
npm install -g webdriverio
npm install -g wdio-cucumber-framework
npm install -g selenium-standalone
npm install -g wdio-sauce-service
npm install -g wdio-selenium-standalone-service
This has already been setup and can be found in the /tests
folder. Should you need to re run te setup again follow the reference link above.
Navigate to the /tests
folder and type in selenium-standalone install
- Run
npm test
dev // All the developement happens in here
--js // JavaScript files here
----actions // Things that happen (BUTTON_CLICKED etc)
----components // Anything used for displaying stuff
----containers // A smart component (aware of the state/data changes)
----reducers // Reducers take in actions and update part of application state.
----actionCreators.js // Entry point for the App
--css // Styles here. Let's keep this as SASS
src // This is where the project is built
--js // Generally you don't need to touch this
----bundle.min.js // The packaged app (by webpack)
--actionCreators.js // Entry point for bundle.min.js
tests // All unit & integration tests and blackbox tests go here
--features // All the .feature files go here
----step-definitions // The step definitions go here
wdio.con.js // WebdriverIO config file
The PDF is first converted to HTML then the highlighting is performed in HTML. The HTML is then converted back to PDF. Both of these processes use system tools so we'll need to have them installed. ###OSX Instructions
- Download Homebrew if you don't already have it.
- Run
brew install pdf2htmlex
. Source - Download & Install NodeJS if you don't already have it.
- Run
npm install -g electron-pdf
.
##Windows Instructions
- Install pdf2htmlex from here. Follow their instructions to install.
- Download & Install NodeJS if you don't already have it.
- Run
npm install -g electron-pdf
.