TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: real-world examples of HTTP servers in Elixir?

2 点作者 TXV超过 6 年前
I need to develop some small frontend for internal use at my company and I have absolute freedom over the tech stack.<p>I decided to take this opportunity to learn Elixir.<p>The requirements of this project are very simple. I&#x27;s a server which fetches some data from another HTTP API and uses it to render a bunch of HTML pages.<p>I&#x27;m following the Elixir tutorials on the official site. I would like at the same time to explore a real-world project that implements my requirements, to see what a complete working application would look like.<p>Do you know of any such open source repo? Thank you!

2 条评论

elcritch超过 6 年前
It’s not an existing site, but any of the ‘make a blog in 15 min’ tutorials [1] will get you to working code examples quickly. The Elixir build utility `mix` has great tools for creating new projects and the example project will scale easily into what you want to try. Also, GenServer’s are a good way to retrieve _and_ cache the data from the other http server, following the KV supervisor tutorial would be a good starting point.<p>1: <a href="https:&#x2F;&#x2F;medium.com&#x2F;@kacpx123&#x2F;phoenix-1-3-simple-blog-api-and-postman-tests-b7fadd3394ab" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@kacpx123&#x2F;phoenix-1-3-simple-blog-api-and...</a> 2: <a href="https:&#x2F;&#x2F;github.com&#x2F;learnphoenixtv&#x2F;blog" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;learnphoenixtv&#x2F;blog</a> 3: <a href="https:&#x2F;&#x2F;medium.freecodecamp.org&#x2F;simple-extensible-blog-built-with-elixir-and-phoenix-61d4dfafabb1" rel="nofollow">https:&#x2F;&#x2F;medium.freecodecamp.org&#x2F;simple-extensible-blog-built...</a>
jamil7超过 6 年前
The only one I can think of is the changelog podcast site <a href="https:&#x2F;&#x2F;github.com&#x2F;thechangelog&#x2F;changelog.com" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thechangelog&#x2F;changelog.com</a> I haven&#x27;t read the source but I imagine it would cover your usecase.