GithubHelp home page GithubHelp logo

darenlunia / nodejs_demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 39 KB

是一个很小的demo,走了一下使用js完成服务器操作的流程,借助nodejs环境完成http的get和post请求。

JavaScript 82.36% HTML 17.64%

nodejs_demo's Introduction

nodejs_demo

是一个很小的demo,走了一下使用js完成服务器操作的流程,借助nodejs环境完成http的get和post请求。

运行方法

官网安装nodejs环境,打开app.js所在文件夹

执行node app
访问localhost:8888/

两个接口

只有登录和注册两个接口,功能和页面比较简陋,但简明的完成了nodejs执行服务器执行http操作的基本流程。

1 ./login

参数 username password 返回值 err msg

2 ./reg

参数 username password 返回值 err msg

Demo的参考来源

慕课网-node基础

nodejs_demo's People

Contributors

darenlunia 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.