r/learnwebdev • • Mar 10 '17

Learn to make a database driven website?

Hello everyone. I know how to code, but I don't really dabble in web stuff so much. Would it be hard to make a website with a little search box that would make queries to a database for a user? I'd also like to display the contents of the database with some links and information. Here's a really good example: http://mhgen.kiranico.com/monster/great-maccao . I'd like to make something like that, but way more barebones.

What kind of stuff will I need to know? I've heard the basics are HTML, CSS, Javascript, and I know some SQL (MySql, PostgreSQL). Can I make something like that example just using these things? Would appreciate any help, thank you!

4 Upvotes

1 comment sorted by

1

u/[deleted] Mar 10 '17

I am a backend dev (PHP) so I can't speak too much towards how to do database stuff from the front end but I imagine you would probably want to do heavy transactions like search from the backend anyway. If you have a lot of text to search, like descriptions and so on you will want to look into a full text search like solr or elasticsearch, otherwise you can use mysql or something like that (mysql even has a fulltext search option which I am using right now to search names - a great in-between option) My suggestion would be to make a simple API in PHP with a microframework (check out Lumen, or SlimPHP if you're feeling brave) to do the searching and other heavy stuff and then build a simple front end on top of it.