Code Monkey home page Code Monkey logo

akoa's Introduction

akoa

这是个人学习的前后端分离项目,avue为前端,akoa为后端,详细的流程设计文档在doc目录下。 建议先部署好avue再部署akoa。

部署

所需环境

先安装好node8,redis,mysql环境。

下载 安装

cd /var
git clone https://github.com/alwxkxk/akoa
cd akoa
npm install 

配置

将config.sample.js配置信息补全并改名为config.js才能启动。

  • 如果mysql 与redis有设置密码需要在配置文件中额外填写。
  • 需要配置邮箱才能发送邮件 ,且修改serverUrl到你对应的网址。

运行

#先配置config/config.js
cd /var/akoa/config/
mv config.sample.js config.js #根据自身实际情况修改config.js

#然后运行初始化文件,这个文件会检测并初始化mysql redis。
npm run init

#先手动运行,确认没有问题再使用pm2部署
npm run dev

#pm2正式部署
pm2 start /var/akoa/src/app.js --name akoa --max-memory-restart 256M

#查看日志
pm2 logs

#查看状态
pm2 imonit

akoa's People

Contributors

alwxkxk avatar

Watchers

James Cloos 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.