Skip to content

Curly Braces

Golden nuggets where no entry is longer than my expected attention span

  • Articles
  • Contact Me!
  • Policy
  • Internal

Category: Javascript

A simple JWT example with NodeJS and Python (part 2)

Posted on June 8, 2022 by Peter Andersson

A continuation of https://blogg.fsh.se/2022/06/06/a-simple-jwt-example-with-nodejs-and-python-part-1/ This article describes the creation of a simple React client logging into the backend using JWT. The React client Keep track […]

Continue reading »
0
Development, Javascript, React

A simple JWT example with NodeJS and Python (part 1)

Posted on June 6, 2022 by Peter Andersson

The following example is built using a Python Flask backend, a CURL-script to test it, and a simple React frontend that logs in, gets an […]

Continue reading »
0
Development, Javascript, Linux, Node, Python

Avoiding relative imports in a React app

Posted on March 14, 2020 by Peter Andersson

Even with a moderately large React app, you try to structure your modules and end up here in the end: import ../../../components/dialogs/enter.jsx WTF?? Good luck […]

Continue reading »
0
Development, Javascript, React, Visual Studio Code

A few console.log gems you didn’t know about

Posted on November 14, 2019 by Peter Andersson

Top 10 javascript console tips! Tip #0 console.assert() Tip #1 console.trace() Tip #2 console.time() && console.timeEnd() Tip #3 console.memory Tip #4 console.profile(‘profileName’) & console.profileEnd(‘profileName’) Tip […]

Continue reading »
0
Development, Javascript, Node

Adding Redux to your React project

Posted on November 14, 2019 by Peter Andersson

Installation Add the necessary modules yarn add react-redux yarn add redux Fix the component import {connect} from ‘react-redux’; // definition of DummyComponent here… const mapStateToProps […]

Continue reading »
0
Development, Javascript, React

A simple but complete Highcharts example

Posted on October 19, 2019 by Peter Andersson

This is how you can test the excellent Highcharts library. Make sure you have JQuery added first. <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/highstock/6.0.2/css/highcharts.css” integrity=”sha256-ji+33kRPEXS0+FM/AbApEs8n5kT2UBiGyk36zs1F9gE=” crossorigin=”anonymous” /> Also include […]

Continue reading »
0
Ajax, Development, HTML and CSS, Javascript

Elegant menu transition in Bootstrap

Posted on March 27, 2019 by Peter Andersson

I like the fixed menu, that stays in place when your scroll the content, but I have seen a few websites do a cool transition […]

Continue reading »
0
Development, HTML and CSS, Javascript

Roadmap for 2018/2019

Posted on September 25, 2018 by Peter Andersson

Too many frameworks? Check. Too many tools? Check. Too many crossroads? Then use this roadmap. It will help you decide which path to take in […]

Continue reading »
0
Ajax, Development, Git, HTML and CSS, Javascript, React, Tankar, Thoughts, Vue

What the heck is npx?

Posted on August 29, 2018 by Peter Andersson

If you haven’t lived under a rock for a couple of years, you must have stumbled upon npm, the standard node package manager, in one way […]

Continue reading »
0
Development, Javascript, Node

Where’s the action?

Posted on July 14, 2018 by Peter Andersson

There are so many web frameworks. And their supporters all claim that “their” framework is the one with the most momentum. The site http://hotframeworks.com tries […]

Continue reading »
0
Ajax, Development, Javascript, React, Vue

Gulp or Webpack?

Posted on June 14, 2018 by Peter Andersson

First of all, Gulp and Webpack are not beasts of the same kind. Gulp is a task runner, which you can use for various tasks […]

Continue reading »
0
Development, Javascript, Ruby on Rails

Pimp your Rails site with some Vue.js

Posted on June 7, 2018 by Peter Andersson

Rails is great, but nowadays a full page refresh is as unpopular as  male ponytails or shoulder pads. Some write full-stack SPA sites, which is […]

Continue reading »
0
Ajax, Development, HTML and CSS, Javascript

Gulp or Grunt?

Posted on June 7, 2018 by Peter Andersson

OK, let’s have it, are you a Gulper or a Grunter? To some, build systems are a major issue. To me, not so much. In […]

Continue reading »
0
Development, HTML and CSS, Javascript, Thoughts

User sign-in from SPA to Rails backend

Posted on May 29, 2018 by Peter Andersson

Intro Nowadays it is popular to create fullstack-JS applications (meaning both front- and backend written in Javascript) but what if you want to use the […]

Continue reading »
0
Ajax, Development, Javascript, Ruby on Rails

Installing node.js on Ubuntu (16.04 specifically)

Posted on March 26, 2018 by Peter Andersson

how-to-install-node-js-on-ubuntu-16-04 has a great explanation, but long, about the details. The short version come here: Do NOT use the ubuntu package version. It´s old and named […]

Continue reading »
0
Javascript, Linux

Javascript frameworks 2018

Posted on February 22, 2018 by Peter Andersson

Some alternatives to Angular 1.x (deprecated), Angular 2 (Typescript) and Angular v4 https://www.slant.co/topics/4306/~angular-js-alternatives vue.js riot react (not a framework, per se. It’s a view rendering […]

Continue reading »
0
Development, Javascript

Javascript in 2017

Posted on August 6, 2017 by Peter Andersson

The JS environment is, as we know, “complicated”. Every browser uses a different JavaScript engine: Chrome runs V8, Firefox runs SpiderMonkey, and Internet Explorer uses […]

Continue reading »
0
Javascript

Javascript-länkar att lägga till samlingen

Posted on April 24, 2016 by Peter Andersson

Om ‘use strict’: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ Modular Javascript/CommonJS: https://addyosmani.com/writing-modular-js/ Babel: Code for ES6 and still be backwards compatible with older browsers: https://babeljs.io JSX In depth: http://facebook.github.io/react/docs/jsx-in-depth.html

Continue reading »
0
Development, Javascript

Facebook React Native

Posted on April 13, 2016 by Peter Andersson

Det finns flera ramverk som ger möjlighet att skriva appar i Javascript, och sedan kompilera dem för den målmiljö man är intresserad av (oftast iOS […]

Continue reading »
0
Development, Javascript, React

Från bloggen

AI Ajax Apache bash Development Docker Git Google Gradle Heroku HTML and CSS Imaging IOS Java Javascript Linux Math MIcroservices Microsoft MySQL Network Node OSX Palmemordet Patterns Photo PHP Python Raspberry Pi React Ruby Ruby on Rails Samba Spring Boot Tankar Thoughts Trading Uncategorized Video Visual Studio Code Vue Web Wordpress XCode
May 2025
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Mar    

Articles

Favourite Links

  • A Rock Solid Rails 5 API App with a React Frontend
  • Rails 5.1's form_with tag
  • Complex Rails forms
  • Rails is scalable

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Powered by WordPress and Momentous.