GithubHelp home page GithubHelp logo

todolist's Introduction

TODOLIST

build
一个简单的网站demo。

主要特点

  1. 完全自动化部署:Travis CLI持续集成+阿里云docker容器服务+阿里云ECS主机
  2. 使用docker及docker-compose快速编排服务
  3. golang作为后台语言
  4. mysql实现主从服务配置
  5. ngix实现反向代理

项目内容说明

  • core/:后端服务核心,controller处理前端请求,service提供数据库服务,models定义数据模型
  • front_end/:前端文件,基于Vue
  • mysql/:主从配置相关文件。包括mysql的构建文件及docker-compose.yml文件
  • nginx/:nginx相关配置文件
  • static/:Vue编译生成的真正的端文件
  • main.go: 后端程序入口文件
  • docker-compose.yml:部署应用及nginx
  • Dockerfile:生成镜像
  • .travis.yml:自动集成及部署文件

其他

如何使用travis cli免密登录服务器?

一点都不高大上,手把手教你使用Travis CI实现持续部署

如何加密密钥?通过travis-cli运行如下命令:

$ travis encrypt-file ~/.ssh/id_rsa --add

如何在docker容器内部使用中文?例如:

docker run -it --rm --net host mysql:latest env LANG=C.UTF-8 /bin/bash

ngnix配置问题

如果使用docker 镜像,一定要同时映射两个端口:80443.

todolist's People

Contributors

kangbb avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.