Originally written by Gurmeet Singh for Cosmic JS Developer ArticlesIn this tutorial, I'm going to show you how to build a blog powered by Angular and hosted on the Cosmic JS App Server.TL;DRDownload the GitHub repo.Check out the demo.PrerequisitesYou'll need the node JS, npm and Angular cli pre-installed. Make sure you already have them before you start. You can refer to Angular docs on how to do this.Getting StartedHere we are going to create the Angular project. We'll use ng cli to do it. So once you'll have all prerequisites installed, you'll need to setup the new Angular project:ng new cosmic-angularIt will install the Angular app on your system with the name "cosmic-angular". Now run the following commands:cd cosmic-angularng serve --openIt will run your app on the browser on default port 4200 i.e. http://localhost:4200/Setting things up with Cosmic JSStart by creating the bucket and remember the bucket name:Then create a new object type named 'blogs' and please remember the object type slug ('blogs').
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
angular,angularjs,web-development,javascript,blog
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
This article is related to
angular,angularjs,web-development,javascript,blog
No comments:
Post a Comment