https://github.com/221v/eshop_v1
erlang shop prototype v1
https://github.com/221v/eshop_v1
Last synced: 4 months ago
JSON representation
erlang shop prototype v1
- Host: GitHub
- URL: https://github.com/221v/eshop_v1
- Owner: 221V
- License: mit
- Created: 2018-07-01T23:00:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-06T12:45:45.000Z (almost 7 years ago)
- Last Synced: 2025-01-06T02:42:18.497Z (5 months ago)
- Language: Erlang
- Size: 484 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Erlang shop prototype v1
===========================simple shop (without user registration) with telegram bot order-message into channel/groupchat
-------------
Prerequisites
-------------
* erlang (v 20 or higher)
* postgresql (v 9.5 or higher)
* pgbouncer (optional - change port to postgresql)
* nginx (optional - change websocket_port to default)
* letsencrypt certbot or acme.sh (optional)
* make
* inotify-tools (Linux, for filesystem watching)Includes
---
* n2o ( github.com/synrc/n2o )
* nitro ( github.com/synrc/nitro )
* mad ( github.com/synrc/mad )
* otp.mk ( github.com/synrc/otp.mk )
* erlydtl ( github.com/evanmiller/erlydtl )
* epgsql ( github.com/epgsql/epgsql )
* vanilla.js ( vanilla-js.com )Run
---
On Linux1 -- create telegram bot, get bot token
2 -- install nginx, erlang, postgresql, other
3 -- put this code, edit settings in sys.config and run
$ ./mad deps compile plan repl
$ CTRL + C
$ make start
$ make attach
$ CTRL + DThanks
---
* thank you, n2o developers ( github.com/synrc/n2o )
* thank you, erlang developers ( erlang.org, erlang-solutions.com )
* thank you, postgresql developers ( postgresql.org )
* thank you, nginx developers ( nginx.org )
* thank you, letsencrypt developers ( letsencrypt.org )
* thank you, telegram developers ( telegram.org )
* and more other people, including debian, ubuntu & lxde developers etcThank You, You make me happy :)