fsb_backbone/README.md
Martin Donnelly e1d9657e87 init
2021-03-12 07:55:43 +00:00

51 lines
1.4 KiB
Markdown

# FSB Backbone
Based upon the FSB React test. Built against Node v14.15.5.
When unpacked `cd` into the folder, run the command:
```shell
npm install
```
This will install all dependencies and build the application.
To run the application, run this following command:
```shell
npm start:server
```
This should start the server running on [http://localhost:3001](http://localhost:3001).
To rebuild the source code at any time, run the following command:
```shell
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'.