Open source communities are always spending days constructing strange project names. This is another stupid example: "await-bot works a) in time, b) on time."
Let us say "in time" (occasional events) and "on time" (timed events) are two features of await-bot.
I will further abbreviate it as ab
, for the two features itemized by a
and b
as above.
What is this? I do not know. Just want to play with Web APIs with javascript async / await something that I do not know again.
async
/await
is supported since node.js
7.6
. Get your node prepared. As now, year 2019, it should not be a problem since "LTS" version is 10.16
.
Follow official website, or use nvm.
Make sure you have it now
node -V
It seems npm will come with node automatically. Just get dependency with npm
npm install
Run it with node. You may want to specify a port with environment variable AB_PORT
, otherwise it goes to default 3000
.
node server.js
Go to your browser and visit http://localhost:<port>
. Replace <port>
with port you specify above, or use default 3000
.
Actually I have no idea what to expect from this project. I mean from running the bot. However I do expect any input. I mean, your contribution is welcome.
- Language: JavaScript - Trying to use ES6, run by Node.js. Especially I would like to try out
async
/await
patterns. You might like to checkout the capability of JavaScript engines with ES6. - Web Framework: Koa - I was so shocked by what I see running the first sample of Koa, after looking and waiting for something to come out, just nothing, I mean, no banner, no log, ... , and soon amazed by this design.
- I/O: Socket.io - Have not started to use it yet. Just planed to have it for Internet I/O.
- Testing: Jest - Have not have it yet.
- CI: SemaphoreCI - First-look lets me down a bit but it seems it is promising, especially for the 2.0.
- Deploy: Glitch - The feature is awesomely fitting my requirement. I do not need the bot up forever. It can rest and just wake up in time, and on time.
- Language: Typescript - it is a promising alternative to me. I am open to other options like CoffeeScript, because of my ignorance. Babel may be needed here.
I am trying to use GitHub flow to accept incoming contribution, together with a local branching model like Git Flow. Please refer to CONTRIBUTING.md for contributing.
I use semantic versioning. See the tags on this repository for the versions available.
Nothing there? Sure, this is now.
I started the project unconsciously. Check out the list of contributors who participated in this project.
No licensed for now. Maybe later.
Everyone of you.