Jump to content

Hey guys, 

 

I'm currently working out some plans for a new application I want to build. I'm planning to split the app up into 3 parts, a backend part with a JSON rest API, a standard dynamic website as a responsive web frontend(No Angular or React sh*t) and native mobile applications as API consumers.

I don't have a whole lot of experience building Rest Apis and I know it's a pretty complex topic. I know the basic principles of API design and I know how to consume them. 

I started with a basic application written in JavaScript (node.js) it's using express, passport, etc. and it works as I expected it to work. My problem is that my own codebase is already pretty large and it's still growing, I'm a single developer and I don't have the spare time to maintain all of this code, that is why I need a framework. I'm starting a new project so I'm flexible in terms of programming language, I can develop with Java, JavaScript and PHP(<- Not my fav.). 

Does somebody know which framework would be a good choice for my project?

 

Link to comment
https://linustechtips.com/topic/673371-restapi-framework/
Share on other sites

Link to post
Share on other sites

NodeJS is in my opinion, still the best option. If you want an easy and quick start with little maintenance, try using express-generators. Then just add routes for your data. If wouldn't recommend PHP because it would increase the amount of code you have. Java seems like a good option, but you might encounter the same problems as you had in node, and be aware that most Java frameworks lack in certain functionality and are known to have security risks associated with them. Could someone with more experience in Java weigh in?

˙ǝɯᴉʇ ɹnoʎ ƃuᴉʇsɐʍ ǝɹɐ noʎ 'sᴉɥʇ pɐǝɹ oʇ ƃuᴉʎɹʇ ǝɹɐ noʎ ɟI

Link to comment
https://linustechtips.com/topic/673371-restapi-framework/#findComment-8674625
Share on other sites

Link to post
Share on other sites

1 minute ago, dannytech357 said:

NodeJS is in my opinion, still the best option. If you want an easy and quick start with little maintenance, try using express-generators. Then just add routes for your data. If wouldn't recommend PHP because it would increase the amount of code you have. Java seems like a good option, but you might encounter the same problems as you had in node, and be aware that most Java frameworks lack in certain functionality and are known to have security risks associated with them. Could someone with more experience in Java weigh in?

 

Thanks. I also think nodejs is the best solution, lightweight and scalable. I already took a look at express generators but they are generating the exact same code as I use :D 

Link to comment
https://linustechtips.com/topic/673371-restapi-framework/#findComment-8674672
Share on other sites

Link to post
Share on other sites

So I don't have Experience with running Node.js serverside as a JSON REST api. So I can't give you advice on that subject.

If you only need a REST api, I would use the Slim Framework or the Lumen Framework. They are both really easy to implement, fast and both output JSON out of the box

Business Management Student @ University St. Gallen (Switzerland)

HomeServer: i7 4930k - GTX 1070ti - ASUS Rampage IV Gene - 32Gb Ram

Laptop: MacBook Pro Retina 15" 2018

Operating Systems (Virtualised using VMware): Windows Pro 10, Cent OS 7

Occupation: Software Engineer

Link to comment
https://linustechtips.com/topic/673371-restapi-framework/#findComment-8674947
Share on other sites

Link to post
Share on other sites

16 hours ago, leodaniel said:

So I don't have Experience with running Node.js serverside as a JSON REST api. So I can't give you advice on that subject.

If you only need a REST api, I would use the Slim Framework or the Lumen Framework. They are both really easy to implement, fast and both output JSON out of the box

 

I forgot to mention that I'm using MongoDB as a Database Backend, so I think PHP isn't really an option here. 

Link to comment
https://linustechtips.com/topic/673371-restapi-framework/#findComment-8677891
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×