Coder Social home page Coder Social logo

node-express-mongoose-photodemo's Introduction

node-express-mongoose-photoDemo

An example of uploading and downloading photos using nodejs and express and mongoose

前序准备

你需要在本地安装 nodemongodb。 本项目技术栈基于 ES2015+expressejsmongoose,提前了解和学习这些知识会对使用本项目有很大的帮助。

说明

  1. 本demo是使用express生成的一个ejs模板引擎项目;
  2. 页面由服务端渲染,前后台不分离;
  3. 使用原生的form表单实现上传图片;
  4. 使用node的API有fs、path,给图片重命名,以及修改保存路径;
  5. 使用插件silly-datetime格式化日期;
  6. 使用插件morgan进行日志输出;
  7. 使用插件formidable获取表单提交内容。

开发

# 克隆项目
git clone https://github.com/learnMores/node-express-mongoose-photoDemo.git

# 进入项目目录
cd node-express-mongoose-photoDemo

# 安装依赖
npm install

# 启动服务
npm start

本地浏览器访问 http://localhost:3000 ##17:16

node-express-mongoose-photodemo's People

Contributors

learnmores avatar

Stargazers

 avatar

Watchers

 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.