在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):deoxxa/don开源软件地址(OpenSource Url):https://github.com/deoxxa/don开源编程语言(OpenSource Language):Go 72.9%开源软件介绍(OpenSource Introduction):donI was interested by mastodon, but found it to be a little too heavyweight for me. I want something I can run as a single binary with no other services. To that end, I'm embarking on writing this - tentatively named don. I'm not sure what it'll end up being. Right now it's Beware!I'm changing lots of things really often right now. I can't guarantee that you'll be able to upgrade from one version to the next without a lot of manual intervention at the moment. Once I've got some of the schemas and APIs nailed down, I'll enact a stability policy. Until then, I'll try to keep the really bad breaking changes to a minimum, and I'll try to batch them up whenever I can. Prebuilt BinariesYou can download a binary from bintray. On linux and macos you'll have to
Change the filename and Usage
All these options are available as environment variables as well - just make
them uppercase, e.g. Build Portable BinaryRight now, you'll need the following:
You should see something like the following:
At the end, you'll have a self-contained binary named Build Cross-Platform BinariesThis is the same as above, except that you'll need one more tool: Now, instead of running DevelopmentMost of the work will probably be in the client code. To make this easier,
there's a All you need to know is that when you run the live reloading environment, you have to provide all your server parameters as environment variables. I suggest something like the following:
Once it's all running, you should be able to open When this is running, you'll be able to save files and have the content in the browser update automatically. This makes working on client stuff much nicer. Code FormattingThe main idea for the code formatting in this project is that it should be automated. Not just automatically checked, but automatically applied. No bikeshedding, no suggestions, no discussions. Computer is always right. For go, use gofmt. For JavaScript, use prettier with
For CSS, use csscomb with the config provided in
For shell scripts, use shfmt with Code AnalysisThere are a couple of tools in use right now to do some static analysis on the application's code. I expect that this list will grow in time. ESLint is a linter, and in this case it's used to catch
some basic logic errors. It is not used for detecting problems with or
enforcing a formatting style. That is handled by Flow is a static analysis and gradual type engine for JavaScript. I'm not aiming for 100% coverage with Flow - I'm just using it to help catch really obvious bugs (e.g. accessing properties on null/undefined).
AcknowledgementsSome included icons were made by Freepik at Flaticon, which were shared under the CC 3.0 BY Creative Commons license. The included username blacklist is based on The Big Username Blacklist by Martin Sandström, which was provided under the MIT license. Some code for serialising forms was adapted from freiform by Falk Hoppe, which was provided under the Apache License 2.0. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论