Simple Restify & AngularJs App

For a job application, i was asked to build an SPA app, i wanted to use AngularJS for it’s simplicity, and also wanted to include RestifyJs View Full Source Code I could just build an Angular app, too, but i needed to have some zipcode data of some places, and i found this api. They restrict you to use the api, which is only 50 requests in an hour or so....

March 11, 2017 · 7 min · Ahmet Gokdayi

Get Started With Angular 2

Angular2 is a popular Single Page Application framework lately. Before Angular2, there was AngularJS(1.xx) and angular team just call this new Angular2 as Angular We are going to set-up a starting project, talk about some important stuff about Angular What I like about Angular is it’s consistency. We seperate every stuff we can, html css and javascript. We have components, which manages a section of an html page, that we call as Views....

February 8, 2017 · 5 min · Ahmet Gokdayi

How to Change Github Repository Language

Github Linguist It’s a library used on Github to detect repository languages. You can check it out here GitAttributes We’ll need a .gitattributes file in order to change the repo language. I’m using Windows, and it does not allow me to define a new file with name starting with a dot. If you are having such a case, you can type the following command from the command line: echo .> ....

February 6, 2017 · 1 min · Ahmet Gokdayi

How To Use Git Properly

Git Matters a Lot Dead simple, you don’t lose your files, you can track your progress, use milestones, open issues, review, etc. on Github. Github powers Git a lot. These are very important stuff. When I started using Git, I was committing big changes, then I realized that if possible, we gotta commit every time a file changes. I mean, if README.md changes, add a commit like this: git commit -m "change readme....

February 1, 2017 · 2 min · Ahmet Gokdayi

AngularJS Unsupported Media Error

So, you made an http request using AngularJs, similar to this : $http.post(api, data).then(function(response){ }); const a = (a, b) => a + b Or maybe a PUT request? It does not matter actually, but the original docs does use another snytax like this : $http({ method : 'POST', url : 'api_here' }); Let’s talk about the problem, it’s because you have to add Content-Type header value to your request, and it’s very easy to add:...

January 30, 2017 · 1 min · Ahmet Gokdayi