-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a tutorial #3
Conversation
th0mas
commented
Jul 17, 2020
•
edited
Loading
edited
- Setup insomnia
- Create a request
- Templating introduction
- Post request
- Using Tags
- Authentication Overview
@nelsonic are you able to give this a quick once over for typos etc before merging? |
@th0mas will read it through today after standup. 👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @th0mas,
This is a good effort towards explaining insomnia
, 👍
however the "How?" section covers a Go
Todo List Api. 🤷♂️
We don't use Go
for anything and we don't plan to use it.
We use Elixir
and we need our insomnia
guide to be relevant to the language we use.
I can only apoligise if I didn't make it clear in the issue yesterday: #1
But we really need the insomnia
tutorial to be relevant to what we are building. i.e. use Elixir/Phoenix
:
If we are using insomnia
for our https://github.com/dwyl/smart-home-auth-server
then our tutorial needs to help the person who is new to the project understand why/how insomnia is used within that context.
Our established Technology Stack is Elixir/Phoenix
. If it's not possible to use Elixir
with insomnia
, then please make that clear in the README.md
.
The last thing we want to do is introduce people to a brand new programming language while they are learning insomnia it adds too much complexity to the tutorial and ultimately isn't relevant to the context where we are using insomnia in "production". It actually ends up being more confusing than helpful.
It might be safe to assume that people at your Uni course know
Go-lang
, it's even reasonably safe to assume that I (Nelson) know it, but it's definitely not a safe assumption when it comes to the rest of the team/community. 😞
Just to re-iterate: in isolation an insomnia
tutorial that features a new
(to @dwyl) programming language is perfectly fine and you've done a good job of making it simple and approachable. But in context, where we are using insomnia
with Elixir
for the Smart Home Hub, it's not very useful for whoever wants to understand how to maintain the project(s) we are building.
Please don't scrap the Go
work you've done, it might be relevant to the devs who use Go
.
But please move it to a new folder called go-lang-example
along with the instructions.
What we need from this tutorial is more:
"This is a super basic example showing how we are using insomnia
in our Elixir
project(s)"
Insomnia is a HTTP API client that only interacts with remote servers (and by extension, programming languages) over HTTP. For the purpose of the guide, I assumed no programming knowledge whatsoever, as its not needed to consume APIs through Insomnia, and Insomnia is purely a HTTP client. I used Golang as it means we can ship a server to test against as a single executable for people that may not have programming knowledge. This means it's only one command ( If I had used Elixir - (which I still can), users would have had to download and install an Elixir toolchain, along with Phoenix and possibly PostgreSQL, for no benefit in learning how to use Insomnia. I can also include a Phoenix Server, but this would not change anything about the tutorial itself, as the REST API would stay the same, the same way that writing a server in Go or Elixir does not change what web browser you use to access the server. Hope this helps |
Hi @th0mas, totally get that What I was saying in the issue was that they already have 100% agree we definitely don't need a full-on Phoenix Server with Postgres. 👍 It's generally undesirable to store blobs of compiled code in Git. Completely understand that the tutorial itself won't change with an Thanks. |
@nelsonic Just pushed some changes to add a test admin route on Elixir, might need to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@th0mas thanks for adding the Elixir Server.
100% agree that for this simple Example the Go
is much friendlier for people who don't have much experience of Elixir (or other languages). 👍
I've added a few extra screenshots while following the tutorial. (and fixed a couple of typos)
But your original content is solid.
Thanks. 🙌