/    Sign up×
Community /Pin to ProfileBookmark

Server for Forum written in Typescript (Angular2)

Hi, I am new to this Forum, so I am not sure, if i post this in the right section…

At work I am currently developing a Web-Application, using Angular2 with Typescript. This Web-Application queries data from a REST-Ful Webservice and displays it.
As I really like the Angular2 Framework, because it makes it pretty easyto write readable code (separating view and logic), I would like to use it for a private project to.
I would like to create a little forum (primary for learning purposes) with it. However I am having problems with the server-side. I mean, I need a database and a webserver, which gives me (preferably a REST-Ful) access to the data and manages authentication, user rights etc.

I actually would be able to design and create a database, which fits my needs, however I don’t want to code the webserver, which wraps the database access, as all those security things (https, authentication, user-rights…) are all verry complex.

SO well, my question is, whats the best way to solve this problem? Is there any software, which creates a REST-Ful wrapper arround a given database and handles authentication etc? How would you create the server for such a forum?

Thanks in advance ?

Springrbua

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@rootApr 23.2016 — REST for the most part should be transparent to the user, so being REST-ful is just another Acronym of computer BS that some stuffed shirt decided on in order to justify his or her position within the computing industry.

In its simplest form, AJAX provides this service as a programming medium already, so an API written to be REST-ful is like JQuery or one of the many other frameworks lying around the internet trying to be the top dog when the reality is that it has already been sorted out as a native entity within the JavaScript programming interface.

So in answer to your query... AJAX.
Copy linkTweet thisAlerts:
@SpringrbuaauthorApr 23.2016 — Thanks for your answer.

I searched some more for this theme, and since my preffered programming language is Java i have found the jersey framework, which seems to make it pretty simple to create a RESTful web service. THis service can then run on a server (for example Tomcat) which then takes care about Https. So one of the complicated security things is allready handled for me.

Authentication can then simply be Basic-Authentication, which shouldn't be to hard, so i guess i can handlethat to.

So the last thing left are the user-rights, but Jersey offers some support for that to.

So I guess i'll try it with jersey, mysql and tomcat. The client-side can then simply consume this service.

I only have one last question:

-Where can i host such a service without having to pay to much? Google App Engine? Amaon WS?

But i guess this question does not fit this subforum....
×

Success!

Help @Springrbua spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...