diff --git a/README.md b/README.md new file mode 100644 index 0000000..ae6b463 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# Xtra Folder +Folder building webapp for megaman battle network. Specifically starting out with megaman battle network 6 but might add the other titles after 6 is done. + +## Technology Stack +- Node.js + - Express + - Objection.js (For database models/querying) +- React.js (For front end) + - Redux \ No newline at end of file diff --git a/dump.rdb b/dump.rdb index 77f7390..79254e0 100644 Binary files a/dump.rdb and b/dump.rdb differ diff --git a/lessons_learned.md b/lessons_learned.md index 5ece3f9..d3a1db7 100644 --- a/lessons_learned.md +++ b/lessons_learned.md @@ -17,5 +17,13 @@ Knex:warning - migration failed with error: alter table `chip` modify `element` - Still not 100% sure on koajs + objectionjs. Expressjs and sequelize may have been a better choice due to their maturity and adoption rate. - It is difficult to find a community to ask koajs questions about, besides their github issues page +## General Backend +- Use mature, popular, regularly updated libraries. They will have the most resources available, best documentation, and issues already solved in comparison to other libraries. +- From the get go, have a way to standardize outputting errors so its easier to consume by the front end. + - Look up restful api design patterns in terms of nesting child elements +- Designing database diagram was a good idea and helped thinking through how everything worked. +- separate controller actions from routes. +- when writing tests, try to mock database calls to make the tests run faster. + ## General Development -- After the first few models, I ended up repeating the CRUD actions for a lot of my models. Maybe use yaml or some other tool to auto generate these models after the first few if they are really similar. \ No newline at end of file +- After the first few models, I ended up repeating the CRUD actions for a lot of my models. Maybe use yaml or some other tool to auto generate these models after the first few if they are really similar.