An open API service indexing awesome lists of open source software.

https://github.com/murat/fakepagex

Bu proje #ucbuyucuturnuvasi kapsaminda Felix Felicis takımının geliştirdiği bir projedir.
https://github.com/murat/fakepagex

elixir-lang markov-chain phoenix-framework ucbuyucuturnuvasi

Last synced: about 2 months ago
JSON representation

Bu proje #ucbuyucuturnuvasi kapsaminda Felix Felicis takımının geliştirdiği bir projedir.

Awesome Lists containing this project

README

        

# 🖺 Fakepage

_Bu proje [#ucbuyucuturnuvasi](https://ucbuyucuturnuvasi.com/) kapsaminda `Felix Felicis` takımının geliştirdiği bir projedir._

Fakepage generates a new text from a given text source. It is built on [Markov Chain Model](https://en.wikipedia.org/wiki/Markov_chain). You may want to use it to make new, reorganized, meaningful articles, news, stories, etc.

Also, this project has a crawler for web articles.

P.S 1: The webpage on given URL needs to paragraphs `

` tags in `` objects.

🚀 [**You can check on running demo here**](https://ancient-brushlands-26359.herokuapp.com/) 🚀

P.S 2: Heroku has some limitations like memory and procs count. So if the given text source is very long you would face internal server errors.

## 🔮 Screenshots

![https://i.imgur.com/vnBSDvp.png](https://i.imgur.com/vnBSDvp.png)

## 🚧 Installation

To start your Phoenix server:

* Install dependencies with `mix deps.get`
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server`

Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.

## 🐳 Run via docker

```shell
docker build -t fakepage .
docker run --name fakepage -e SECRET_KEY_BASE=`mix phx.gen.secret` -p 4000:4000 fakepage:latest
```

## 🔍 References

* [Markov chains in Elixir](https://neiro.io/2016-07-31-markov-chains-in-elixir.md.html)
* [Another markov chain implementation written in golang **by me**](https://github.com/murat/mark-go-v/blob/master/main.go)