Here are the basics. I’ll probably write a doc with more details later but this will get everyone up and running. If this is easy enough for everyone we can add some files to automate the below actions. It will be a truly 1 click dev env. Very handy
Create a github and gitpod account. Use your Github to sign into Gitpod.
Create a fork of the repository. You can do this by clicking on the fork button on the Glimesh repository.
3.Go to the below URL replacing your github username as shown.
Example - My username is aMytho
This will create a workspace. Allow it to load until the editor window is shown.
- Now we need to create the database for all the Glimesh data. In the terminal window enter the below command. If a terminal isn’t open press ctrl+j. You can also open it from the menu at the top.
docker compose up db
This will start a dev database. Next we need to install elixir and erlang to be able to run the glimesh code.
- Open a new terminal window keeping the previous window open. Enter the below commands pressing enter after each and allowing it to complete. You may have to enter
Y if it asks for confirmation. Installing erlang will also ask you for a language and keyboard layout. Press enter and enter the number corresponding to the keyboard that you want.
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb
sudo apt-get update
sudo apt-get install elixir esl-erlang
- Once installation is complete we can install the Glimesh dependencies and run the project! Run the below command in the terminal. You may have to enter
yes to install various tools.
Once the project is compiled we can access the Glimesh website. 2 notification windows will open on the bottom right. One says that port 4000 is open. Click on
View in Browser. Alternatively, click on remote explorer on the left panel. Hover over port 4000 and click the globe. You may need to allow popups.
You can now view Glimesh from Gitpod! There is one final thing to do. We need to install an extension for syntax highlighting and intellisense. Click on the extensions icon on the left. Search for ElixirLS. Install it. This will take a few minutes. Now you can make changes to the Glimesh files and the website will automatically update. If something doesn’t work correctly you can stop the app with ctrl+c in the terminal and run the start script again. If you run into any issues let me know!
When you are finished press the menu button at the top. Close the workspace. If you close the tab it will automatically close after 30 minutes of inactivity.