We recommend using Visual Studio Code. It is a free and open source editor that is available for all platforms. You can add some extensions to it to make it more useful for you.
Ruby is available for all platforms. If you need more details for the installation you can following the instructions here.
To install Ruby, you have a couple of options. You can install Ruby from the official website. If you choose to install it from there, you will have only one version of ruby and this can be a problem if you want to use multiple versions of ruby in different projects.
Version Managers (recommended)
If you choose to install it with a version manager, you will have multiple versions of ruby, this is a good option if you use multiple versions of ruby in different projects.
RVM pros over Rbenv:
- RVM is easier to install than Rbenv.
- RVM has more features than Rbenv.
- RVM includes a built-in Ruby installation mechanism while Rbenv does not.
Rbenv pros over RVM:
- Rbenv is lightweight, RVM is heavier.
- Rbenv is more developer-friendly than RVM.
- Rbenv has a dedicated plugin for Ruby installation mechanism, RVM has it built-in.
After you install ruby you need to install rails and bundler. You can use the following commands in your terminal:
Install rails and bundler
gem install rails bundler
Node.js is available for all platforms. If you need more details for the installation of specific version you can following the instructions here.
Version Manager (recommended):
Node Version Manager (nvm) is a tool that allows the user to switch between different versions of Nodejs, helping to reduce overhead when reproducing production bugs in development environments. The default installation is only supported on macOS and Linux environments. Windows users can follow the instructions here.
For more information about nvm, you can go to this link.
Then you need to install yarn. You can use the following command in your
npm install -g yarn
Lesli uses Postgresql as its database engine. It is a free and open source database that is available for all platforms. You can install postgresql on your computer and then you can use it to create a database for Lesli. The following links provide more information about the installation of postgresql.
- Install PostgreSQL on Windows
- Install PostgreSQL on macOS
- Install PostgreSQL on Linux
Git is a version control system that is used to track changes in files. It is used to manage the codebase of Lesli.
Github is a web-based Git repository hosting service that is used to store the codebase of Lesli. For download the codebase you need to clone the repository with ssh or with https. If you want to use ssh you need to create a ssh keys.
To configure bundle and download the gems from github packages you need to create a personal token with read-only access. You can find more information about it, in this link.
Then you can set the personal token with the next command:
bundle config https://rubygems.pkg.github.com/YOUR_COMPANY_PROFILE YOUR_TOKEN
Install engines you need to clone the repository that you want inside the engines folder. The only engine needed to run Lesli at the first time is LesliCloud.