-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add outline of code reuse example for #95
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Reusing Elixir Code - How to Publish Packages to Hex.pm | ||
|
||
Once you understand the basic syntax of Elixir | ||
you may be wondering how to re-use | ||
both your own code across projects | ||
and other people's code in your projects. | ||
|
||
|
||
# What? | ||
|
||
In this example we are going to build a simple Elixir package | ||
that returns a **random inspiring quote** | ||
when the main function is invoked. <br /> | ||
Along the way we will demonstrate how to: | ||
1. Write, document and test a basic package. | ||
2. Reuse code _without_ publishing to Hex.pm. | ||
3. Publish a package to Hex.pm | ||
4. Use the code it in a different project. | ||
|
||
# How? | ||
|
||
## 1. Write Reuseable Code | ||
|
||
|
||
## 2. Reuse Code _Without_ Publishing to Hex.pm | ||
|
||
|
||
## 3. Publish Package to Hex.pm | ||
|
||
|
||
## 4. Use | ||
|
||
|
||
## Recap | ||
|
||
|
||
## References and Further Reading |