- This RESTful API provides the back-end functionality to create, read, update, and delete data related to lego bricks in a user's account. This provides users a way to identify and keep track of lego bricks they own.
- The current version of this program is designed to create, read, update, and delete lego data that returns a user collection containing legos.
- The current version uses ml5.js and p5.js libraries to train the lego model to identify legos according to part number.
- Return user leaderboard
- Pricing information for each lego part
- Store and return sets that the user could make based on their current lego collection
- Jsdocs - Functions
- Swagger Documentation - Route Documentation
- PORT: defaults to 3000
- SECRET: for express secret
- KEY: key obtained from rebrickable.com
- TOKEN_LIFETIME: how long a user token lasts for, defaults to 120 minutes
- MONGODB_URI: location of local mongo database
- run
npm i
- run
npm start
ornodemon
- open new browser window,
localhost:3000
- Unit tests were done with jest -
npm run test
- Lint tests were done with eslint -
npm run lint
- Travis CI is integrated with .travis.yml file