Giter VIP home page Giter VIP logo

i_movie's Introduction

慕课网 - Node.js+MongoDB建站攻略(一期)参考源码

在线学习的动力来自于无私的分享,如果对您有帮助,请给我个Star。

此程序基于慕课网Scott老师的Node.js+MongoDB建站攻略(第一期)视频教程编写,当前所有模块程序均为最新版本,截止2017年4月,代码中包含详细的注释,非常适合初学者。

★★超详细使用流程★★

1、 安装Node.js
  • 具体的安装方法请自行百度,多找几篇博客文章熟悉后再尝试,适用于对Node.js有一定了解的同学
2、 安装MongoDB,方法自行百度,建议先在网上看看视频教程
  • 2.1、 把MongoDB安装路径下的bin文件目录,例如:"C:\Develop\MongoDB\Server\3.4\bin"添加到系统环境变量,便可在命令窗口直接执行bin文件里面的命令;
  • 2.2、 设置MongoDB数据库的数据存储路径,建议在C盘下创建C:/data/db目录文件夹,这是默认的数据存储路径,但需要手动创建,这样的话第3步的命令:mongod可直接执行;
3、 启动MongoDB服务:mongod
  • 3.1、 在命令窗口[cmd]执行命令:mongod,开启MongoDB服务,启动后请勿关闭窗口;
  • 3.2、 再新开一个命令窗口[cmd]执行命令:mongo,就可以用命令来管理数据库,例如:数据的增删改查
4、 安装bower依赖:bower install
  • 在项目文件夹下,按住shift键的同时按下鼠标右键,选择在此处打开命令窗口,执行命令:bower install
5、 安装npm依赖:npm install
  • 在项目文件夹下,按住shift键的同时按下鼠标右键,选择在此处打开命令窗口,执行命令:npm install
7、 启动项目入口文件:node app.js
  • 在项目文件夹下,按住shift键的同时按下鼠标右键,选择在此处打开命令窗口,执行命令:node app
8、 浏览器查看效果
  • 8.1 http://localhost:3000查看首页效果。
  • 8.2 http://localhost:3000/admin/list列表页
  • 8.3 http://localhost:3000/admin/movie后台录入页
如有疑问,请联系itPoet:[email protected]

i_movie's People

Contributors

o-oil 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.