https://github.com/evenchange4/calendar-todo
2.3K
Google calendar todo list application with GraphQL proxy.
https://calendar-todo-web.now.sh/
There are two micro-services in this application:

Pull automated-build images from DockerHub:
$ docker run --rm -it \
-p 4000:4000 \
-e "NODE_ENV=production" \
-e "PORT=4000" \
-e "DEBUG=server" \
-e "GOOGLE_CLIENT_ID=927669772833-ou0jjulc4p68dbfmfnltjqk83rgd5mtr.apps.googleusercontent.com" \
-e "GOOGLE_CLIENT_SECRET=jmn2fzU9n55PIX6FwswyWcDV" \
-e "GOOGLE_REDIRECT_URL=urn:ietf:wg:oauth:2.0:oob" \
evenchange4/calendar-todo-server:latest
# Enter the code...
$ docker run --rm -it \
-p 4001:4001 \
-e "NODE_ENV=production" \
-e "PORT=4001" \
-e "DEBUG=web" \
-e "API_DOMAIN=http://localhost:4000/graphql" \
evenchange4/calendar-todo-web:latest
Screenshot:

Your application must use OAuth 2.0 to authorize requests. https://developers.google.com/calendar/auth
Screenshot:

$ cd packages/server
$ cp .env.example .env # input your own config
$ npm run dev # dev server
> 🚀 Server ready at http://localhost:4000/graphql
# or
$ docker build -t calendar-todo/server .
| Variable | Default | Description |
|---|---|---|
| NODE_ENV | production | |
| PORT | 4000 | Server port |
| DEBUG | server | for npm debug |
| GOOGLE_CLIENT_ID | client id of google oauth | |
| GOOGLE_CLIENT_SECRET | client secret of google oauth | |
| GOOGLE_REDIRECT_URL | redirect url of google oauth |
Screenshot:

$ cd packages/web
$ cp .env.example .env # input your own config
$ npm run dev # dev server
> Ready on http://localhost:4001
# or
$ docker build -t calendar-todo/web .
| Variable | Default | Description |
|---|---|---|
| NODE_ENV | production | |
| PORT | 4001 | Server port |
| DEBUG | web | for npm debug |
| API_DOMAIN | Domain name of GraphQL proxy server |
Screenshot:

Content type
Image
Digest
Size
23.7 MB
Last updated
about 8 years ago
docker pull evenchange4/calendar-todo-server