All Projects → imfycc → Short_url

imfycc / Short_url

Licence: mit
🔗 short url app elixir Phoenix

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to Short url

pryin
PryIn is an Application Performance Monitoring platform for your Elixir/Phoenix application.
Stars: ✭ 25 (-84.57%)
Mutual labels:  elixir-phoenix, phoenix-framework
Awesome Phoenix
🔥 Collection of awesome open-source apps made with Phoenix Framework
Stars: ✭ 481 (+196.91%)
Mutual labels:  phoenix-framework, elixir-phoenix
WhatChat
A web chat application clone of Whatsapp web using Elixir / Phoenix, VueJs and PostgreSQL.
Stars: ✭ 32 (-80.25%)
Mutual labels:  elixir-phoenix, phoenix-framework
live dj
💿 Join or create video playlists to share a real-time experience with others! 🎧
Stars: ✭ 19 (-88.27%)
Mutual labels:  elixir-phoenix, phoenix-framework
Shorten api tutorial
🔗How to make a link shortener using Elixir, Phoenix and Mnesia
Stars: ✭ 60 (-62.96%)
Mutual labels:  phoenix-framework, elixir-phoenix
autoform
🤖📝 AutoForm is the simplest way to automatically generate fast, beautiful and standards/WCAG compliant HTML forms based on an Ecto Schema in a Phoenix Web Application to *significantly* speed up Web App Development. 🚀
Stars: ✭ 18 (-88.89%)
Mutual labels:  elixir-phoenix, phoenix-framework
Papercups
Open-source live customer chat
Stars: ✭ 4,554 (+2711.11%)
Mutual labels:  phoenix-framework, elixir-phoenix
phx raws
Raw websocket server on top of Phoenix.
Stars: ✭ 27 (-83.33%)
Mutual labels:  elixir-phoenix, phoenix-framework
Phoenix In Action
Code snippets and examples from the book Phoenix in Action from Manning and Geoffrey Lessel
Stars: ✭ 60 (-62.96%)
Mutual labels:  phoenix-framework, elixir-phoenix
Elixirbooks
List of Elixir books
Stars: ✭ 1,021 (+530.25%)
Mutual labels:  phoenix-framework, elixir-phoenix
Godello
Trello inspired kanban board made with the Godot Engine and GDScript, powered by an online real-time collaborative backend (Elixir and Phoenix Channels)
Stars: ✭ 273 (+68.52%)
Mutual labels:  phoenix-framework, elixir-phoenix
Adoptoposs
Finding co-maintainers for your open source software project.
Stars: ✭ 93 (-42.59%)
Mutual labels:  phoenix-framework, elixir-phoenix
Elixir Phoenix Realworld Example App
Exemplary real world application built with Elixir + Phoenix
Stars: ✭ 764 (+371.6%)
Mutual labels:  phoenix-framework, elixir-phoenix
Firebird
Template for Phoenix 1.3 projects
Stars: ✭ 66 (-59.26%)
Mutual labels:  phoenix-framework, elixir-phoenix
Docker Phoenix
A dockerized Phoenix development and runtime environment.
Stars: ✭ 152 (-6.17%)
Mutual labels:  phoenix-framework, elixir-phoenix
Phoenix Vue Demo
Basic app developed with Phoenix and Vue 2.0, including authentication.
Stars: ✭ 80 (-50.62%)
Mutual labels:  phoenix-framework
Phoenix Liveview Counter Tutorial
🤯 beginners tutorial building a real time counter in Phoenix 1.5.5 + LiveView 0.14.7 ⚡️
Stars: ✭ 115 (-29.01%)
Mutual labels:  phoenix-framework
Coherence
Coherence is a full featured, configurable authentication system for Phoenix
Stars: ✭ 1,207 (+645.06%)
Mutual labels:  phoenix-framework
Radiator
Podcast Hosting & Publishing | The spark ✨ that lights the fire 🔥
Stars: ✭ 77 (-52.47%)
Mutual labels:  phoenix-framework
Ember Phoenix
Phoenix Framework integration and tooling for Ember.js apps
Stars: ✭ 140 (-13.58%)
Mutual labels:  phoenix-framework

ShortUrl

MIT elixir

短链接生成应用

体验

预览地址

Gigalixir 提供免费部署服务,该地址只用于体验,⚠️ 不提供数据维护存储。

预览图

image

系统设计

短网址(short URL)系统的原理及其实现

准备工作

安装elixir

http://elixir-lang.org/install.html

安装postgreSQL

首次运行

  • 安装依赖 mix deps.get
  • 创建数据库及数据表 mix ecto.create && mix ecto.migrate
  • 安装前端依赖 cd assets && yarn install
  • 启动服务 mix phx.server
  • 访问应用 localhost:4000

调试

进入控制台:

iex -S mix

格式化代码

mix format

部署

可以参考这篇文章 使用 edeliver 部署 Elixir 应用程序

API

短链接生成 API

## api/shorten
curl -X "POST" "http://localhost:4000/api/shorten" \
      -H 'Content-Type: application/json; charset=utf-8' \
      -d $'{
  "url": "https://www.github.com"
}'

批量短链接生成 API

## Mutil api/shorten
curl -X "POST" "http://localhost:4000/api/shorten/" \
      -H 'Content-Type: application/json; charset=utf-8' \
      -d $'{
  "url": [
    "https://gitlab.com",
    "https://github.com"
  ]
}'

短链接复原 API

## api/original
curl -X "POST" "http://localhost:4000/api/original/" \
      -H 'Content-Type: application/json; charset=utf-8' \
      -d $'{
  "url": "http://localhost:4000/zRa"
}'

配置

1、部署地址

2、短链域名

TODO

  • [ ] 记录打包、部署、更新测试中的地址

License

MIT

Copyright (c) 2018-present, 小猿大圣(Youthink)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].