- Nim 100%
| .gitignore | trying some stuff | |
| config.ini.default | trying some stuff | |
| database.nim | return messages on update in order | |
| LICENSE | some administrative stuff | |
| main.nim | adding something | |
| README.md | trying some stuff | |
Mycelium Server
These are the serverside files for the Mycelium messenger app. They are not to fancy right now but they will do for the moment and I might improve them some time soon.
Setup
To get the server running you will need a postgres instance running. Create a database, I like to call mine "mycelium", copy the config.ini.default to config.ini and fill in you data.
If you are planning to use it outside of your home network you also need to set up port-forwarding on your router to make the port you filled in in the config accessible.
Compiling
To compile, you'll need Nim, your distro should provide a package for it, or you can get it from the official website.
The dependancies for now are
- db_connector
- uuids
Once you are set run
nim c -d:release main.nim
and just start the executable.
Your hostname for the app will just be http:// plus whatever you wrote in the config.ini.