Go to file
Martin Donnelly e1d9657e87 init
2021-03-12 07:55:43 +00:00
app init 2021-03-12 07:55:43 +00:00
dev init 2021-03-12 07:55:43 +00:00
live init 2021-03-12 07:55:43 +00:00
public init 2021-03-12 07:55:43 +00:00
server init 2021-03-12 07:55:43 +00:00
.eslintrc init 2021-03-12 07:55:43 +00:00
.gitignore init 2021-03-12 07:55:43 +00:00
.prettierignore init 2021-03-12 07:55:43 +00:00
.prettierrc init 2021-03-12 07:55:43 +00:00
gulpfile.js init 2021-03-12 07:55:43 +00:00
npm-shrinkwrap init 2021-03-12 07:55:43 +00:00
package-lock.json init 2021-03-12 07:55:43 +00:00
package.json init 2021-03-12 07:55:43 +00:00
README.md init 2021-03-12 07:55:43 +00:00
webpack.config.js init 2021-03-12 07:55:43 +00:00

FSB Backbone

Based upon the FSB React test. Built against Node v14.15.5.

When unpacked cd into the folder, run the command:

npm install

This will install all dependencies and build the application.

To run the application, run this following command:

npm start:server

This should start the server running on http://localhost:3001.

To rebuild the source code at any time, run the following command:

npm build

Built code is located in the live folder.

Notes

I tried to stick to about 4 hours for this test and sadly did not get any user interaction working. I was concentrating on getting the data onto the page and updating from the Socket.

An issue was discovered with server/selectionPriceChange.js, this was sending selection.price as the id, which prevented the socket from updated correctly. Unsure if this was intentional or a 'gotcha'.

There was a note about making it all run from the same port, I have implemented that here. Building to /live and having the server use that as static content.

I have used Gulp here as I have more experience using Gulp with Bacbone than Grunt.

Uglify is turned off in the build so that compiled code can be seen.

Things to update

  • Get the user interaction working.

  • Write tests, I didn't have time to even start any simple tests.

  • Everything else from the original test that I have missed because I don't have the 'test text'.