I wrote a REST API in Node.js (with Express)that implements a queue with some dequeue/enqueue functionality, and the next step is creating a web view for that API. I am really new to javascript and Node.js , can i have some pointers on how to implement it? is there a framework I can use to integrate the api.js i built with a front-end?
I wrote a REST API in Node.js (with Express)that implements a queue with some dequeue/enqueue functionality, and the next step is creating a web view for that API. I am really new to javascript and Node.js , can i have some pointers on how to implement it? is there a framework I can use to integrate the api.js i built with a front-end?
Share Improve this question edited Aug 13, 2016 at 12:10 deeveeABC 9863 gold badges13 silver badges36 bronze badges asked Aug 13, 2016 at 11:08 TombTomb 711 silver badge10 bronze badges 5- have your tried angular? – Jorawar Singh Commented Aug 13, 2016 at 11:09
- 1 questions like this usually get closed on stackoverflow because they result in opinionated answers. you can check answers for stackoverflow./questions/14072131/… though – oldbam Commented Aug 13, 2016 at 11:12
- A simple google search would give you an answer for this.... I.e. just search for node js test api frontend and you get lots of code examples and tutorials on how its done. – deeveeABC Commented Aug 13, 2016 at 11:13
- Questions that ask "where do I start" are typically too broad and are not a good fit for this site. People have their own method for approaching the problem and because of this there cannot be a correct answer. Give a good read over Where to Start, then address your post. – Blue Commented Aug 13, 2016 at 12:14
- @FrankerZ - The question is a bit confusing, that might be right. Dunno. But in contrast to you I think there is quite a standardized way to handle REST APIs backend and frontend side using the MEAN stack (at least as there are quite clean to implement REST standards and as Angular offers a straight ressource service to handle data transfer). In other things I agree with you. – sasha Commented Aug 13, 2016 at 12:16
1 Answer
Reset to default 3When you wrote a REST api using nodejs and the expressjs framework, you are perfectly prepared to use the plete MEAN stack, which implements angularJS for frontend services.
Angular offers a plete REST implementation (called ngResource). Install via npm.
With the angular resource service you get your frontend interface (to interact with your backend) out of the box (except a few adaptations you'll have to make, e.g. to make it work with Mongoose, which is used to make the access to your MongoDB more fortable).
You'll find a few superb tutorials, as this one and others on scotch.io are some of them. Google for 'api rest angular resource mean ...' in different selections ;-)
Other links that helped me a lot:
- Tutorial from Angular itself
- Thinkster.io - plete MEAN stack overview with examples
- a helpful tutorial with good examples from Frederik Dietz
- Buecheler es out with this great tutorial, but its more about the backend side - as you might check your code againt the basic standards of a REST backend implementation.
Those are some of the links I noted and that could find ad hoc.
EDIT: As your headline suggests you are searching for an UI, I suppose IBM Strongloop might be a good hint for you. IBM is strongly interconnected with the development of ExpressJS and offers this API and UI for probably all data concerning questions of your Webapp.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745274397a4619947.html
评论列表(0条)