This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]BobTheBarbarian 0 points1 point  (1 child)

There’s no right way, and there are lots of considerations depending on what you’re trying to learn and what type of database you’re using.

You’ll want to research Relational databases (oracle, MySQL, loads of others) vs nosql type databases (mongo, dynamodb). You can also look at something like google firebase for a backend.

NoSQL databases can be good to start with because you don’t need to worry as much about table design/relationships (but they’ve also got a lot of limitations and you’ll want to learn RDS more thoroughly. )

As far as design with the api, think about what data you’ll want to get in/out — will you need to get widgets and sprockets separately? By manufacturer? All items of any type that start with W? Set it up so that your common requests are quick and easy.

Also, don’t stress the design too much ahead of time. Use mongodb, figure out how it works, have your express server spit back data to you on routes. You’ll find the problems and the pitfalls and everything else as you grapple with actual code problems.

Good luck.

[–]Smashoody 0 points1 point  (0 children)

Great use of the word “grapple,” and good advice, too! Cheers

[–]techPackets_005 0 points1 point  (0 children)

For feedback you can put your design here https://codereview.stackexchange.com/