Posts

Showing posts from 2018

How to install Ruby 2.X and Rails 5.X using RVM

The best way to install Ruby on Rails is using RVM in Linux. Advantages of RVM, 1. You can shift between multiple versions of Ruby easily. 2. You don't have to worry about install Ruby dependencies. RVM install will take care of installing them. Some of the ruby dependencies are : gawk, autoconf, automake, bison, libffi-dev, libgdbm-dev, libncurses5-dev, libsqlite3-dev, libtool, libyaml-dev, pkg-config, sqlite3, zlib1g-dev, libgmp-dev, libreadline6-dev, libssl-dev 3. Easily upgrade Ruby version and try out a latest version to make sure your project works with the latest Ruby. If something breaks, changing the version is easy. 4. Delete unwanted Ruby version anytime :) Installation steps. Step 1. Install RVM Source : https://rvm.io/rvm/install $ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB \curl -sSL https://get.rvm.io | bash -s stable $ source /etc/profile $ source ~/.rvm/scri...

Getting started with Python Flask application with MVC structure

I have added a MVC structure and getting started with Python flask application in my Github.  I will continue to contribute to this repository with Database connections and JWT Authentication. Lets get started with Python and Flask :) Here is the Github link for my project. https://github.com/srikanthjeeva/python-flask-getting-started Structure your Flask application like a Rails Application. I'm a Rails developer. I like the way a Rails application is structured and I wanted to implement the similar kind of structure for a Python Flask web Application. Flask by default will not give you this structure. So make use of the getting started with Python flask repository above. The Code structure will look like this: python-flask-getting-started/ |-- app | |-- config.py | |-- controllers | | |-- hello_controller.py | | |-- __init__.py | |-- helpers | | |-- common_helpers.py | | |-- __init__.py | |-- __init__.py | |-- models | | ...