Code Monkey home page Code Monkey logo

neno-hw-serverless's Introduction

neno_hw_serverless

neno 服务端

本地部署

npm install

添加文件 mongoconfig.js

写入以下内容,填上自己的数据 mongodb的数据库名为需neno

//mongodb的链接
exports.mongoUrl = "";
//七牛云的AK
exports.qiniuAK=""
//七牛云的SK
exports.qiniuSK=""

npm run serve

华为云Serverless部署

注册华为云账号

注册地址

前往华为云的函数工作流也就是serverless服务

添加文件 serverless.conf

写入以下内容,填上自己的数据

{
    "mongoUrl": "",
    "qiniuAK": "",
    "qiniuSK": "",
    "HWAK": "",
    "HWSK": "",
    "Enpoint": "",
    "projectId": ""
}

mongoUrl mongodb 的链接 mongodb的数据库名为需neno

qiniuAK 七牛云的AK

qiniuSK 七牛云的SK

HWAK 华为云AK

HWSK 华为云SK

Enpoint 华为云服务的所在区

查看方式 如图

图中为 cn-north-4

projectId 项目ID 图中为"06fa465..."

打开控制台,自动部署

执行 hw_serverless_dev.exe

hw_serverless_dev.exe由hw_serverless_dev文件夹下的go代码打包而成.你也可以自行打包.

=============

License

GPL

neno-hw-serverless's People

Contributors

nenodev avatar mran avatar

Stargazers

xyyuhans avatar xububai avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

neno-hw-serverless's Issues

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.