karan / Projects

:page_with_curl: A list of practical projects that anyone can solve in any programming language.
https://twitter.com/karangoel
MIT License
45.06k stars 10.57k forks source link

REST Web App Idea #107

Open carsnwd opened 7 years ago

carsnwd commented 7 years ago

Lot of applications today involve REST, I think making a basic REST web app where you have a front end that requests something, mid-tier that performs the logic/access a database and deals with pathing, to then deliver it to the front end to display.

An example is maybe like something simple such as states and capitals. Enter a state, and then give it's capital. Can make a database of that pretty easy in PostgreSQL (or really make it in excel, export it to CSV, then import to Postgres). Use a mid-tier like Java with Jersey and Tomcat/JBoss to deploy the server. The front end in JavaScript/HTML/CSS ofc or just XML if you don't care (probably gonna have the mid-tier make it into a JSON object for the front end to read), maybe even go further where the mid-tier makes it into a GeoJSON object that can be displayed using Leaflet.js.

Basically what I'm getting at is REST web apps are huge and a project like this would be something to familiarize yourself to do it any language.

Mazuh commented 7 years ago

The new "official" language for Android is Kotlin that has a reeeaallly nice interoperability with Java and also is very funny to code, so I recommend it instead. I did a REST client using Kotlin a time ago (it's not finished, actually, but already working, and I coded in Kotlin but used Java std libs): https://github.com/Mazuh/RedTube-Wrapper. For web projects, you can use any Java framework just fine. Just import and use, easy like that.

JasonHeiseJason commented 7 years ago

Javascript/ HTML/CSSofc.Mid teer geo JSON.main language English and what ever else you think

carsnwd commented 7 years ago

@Mazuh

Oh cool, yeah I mean a REST app or REST api is so universal almost any language you can make one :) I feel like it's a great practice project to learn a language. Koitlin looks neat, I've never used it before myself.