From 30533c4dd91f4538ce43c3f27ce66f4552b97f15 Mon Sep 17 00:00:00 2001 From: BlueAccords Date: Fri, 20 Apr 2018 17:16:33 -0700 Subject: [PATCH] added more to lessons learned and readme --- README.md | 9 +++++++++ dump.rdb | Bin 242 -> 242 bytes lessons_learned.md | 10 +++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 README.md 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 77f7390534ddd2a325f2942aeffb4d6f3a70c2c0..79254e0266d56f91e2a54c4025dc5720ce41fa46 100644 GIT binary patch delta 63 zcmV-F0Kot90rCNmFf7Jx+FJSub#rB8Ep26O!jSV00QwAJZ)PoUa%Ev{Vr*r=0R8~` V0RjBxC=`)gjtCAhNY97orAc~^8*2an delta 63 zcmV-F0Kot90rCNmFf9C7+FJSub#rB8Ep26O!az3<0QwAJZ)PoUa%Ev{Vr*r=0R8~` V0RjB-Nez))jtB-4@@Y8W)P7na8qxp& 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.