alligator.io alligator.io

Sending and Receiving Cookies from Express.js

Cookie management is not the most difficult thing to do in Express.js, but there are a lot of solutions out there to help you which can make things quite confusing. We’re going to look at a very raw implementation of cookies. If you want to learn more about what browser cookies are, I recommend reading this article first. What We’re Building We’re going to make a little grocery store application using Express.js and as little...

alligator.io alligator.io

Using Vue Template Syntax to Build A Photo Gallery

Vue is best used when with its templating features. It becomes very intuitive to build fancy user interfaces. Take its directives, for example, which refers to tag attributes with the v- prefix. You could have a variable url in your Vue instance that your anchor tag uses as its href. That would look like this: <a v-bind:href="url"></a> Let’s try it with the other directive that we’ll find ourselves using a...