# docker-wechaty-getting-started
**Repository Path**: tom_ud/docker-wechaty-getting-started
## Basic Information
- **Project Name**: docker-wechaty-getting-started
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-03-18
- **Last Updated**: 2024-03-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# DOCKER-WECHATY-GETTING-STARTED
[](https://github.com/chatie/wechaty)
[](https://hub.docker.com/r/wechaty/wechaty/)
[](https://hub.docker.com/r/wechaty/wechaty/)
[](https://github.com/wechaty/docker-wechaty-getting-started/actions/workflows/docker.yml)
[](https://hub.docker.com/r/wechaty/wechaty/)
Getting Started Template for Docker Users
## FEATURES
1. Wechaty is fully dockerized. So it will be very easy to be used as a MicroService.
1. Clone this repository, then you will be able to use Docker to run Wechaty with ZERO configuration.
## REQUIREMENTS
1. Docker
1. Global Internet Connection
## USAGE
### Run Bot Examples
#### 1. Run TypeScript Example
Source code at `src/typescript.ts`
```shell
bin/docker-run-typescript.sh
```
#### 2. Run ES Module Javascript Example
Source code at `src/javascript-esm.js`
```shell
bin/docker-run-javascript-esm.sh
```
#### ~~3 Run CommonJS Javascript Example~~
~~Source code at `src/javascript-vanilla.js`~~
> CommonJS will not be supported anymore because we have switched to pure ESM from Wechaty v1.0.
### 2. Set Environment Variables
The above scripts(`bin/docker-run-*.sh`) will pass all environment variables that start with `WECHATY_` from current shell to the Docker container.
All you need is just to set it under the shell before you run the `bin/docker-run-*.sh`.
```shell
export WECHATY_LOG=verbose
```
## DOCKER
### Install Docker
Quick & easy install Docker via:
```shell
curl -sSL https://get.docker.com | sh
```
Or
```shell
wget -qO- https://get.docker.com/ | sh
```
Get to know more about Docker at:
## TEST
BATS: [HOW TO USE BATS TO TEST YOUR COMMAND LINE TOOLS](https://www.engineyard.com/blog/bats-test-command-line-tools)
## SEE ALSO
1. Wechaty Getting Started:
2. Heroku Wechaty Getting Started:
## HISTORY
### main 1.0 (Nov 4, 2021)
1. Update example code to match Wechaty v1.x API
1. Enable GitHub Actions (and remove Travis CI)
### v0.1 (Aug 14, 2018)
Init docker support.
## AUTHOR
[Huan LI](http://linkedin.com/in/zixia) \
## COPYRIGHT & LICENSE
- Code & Docs © 2018-now Huan LI \
- Code released under the Apache-2.0 License
- Docs released under Creative Commons