Giter VIP home page Giter VIP logo

it4421-20171-san-dau-gia's Introduction

Guide line:

Điều kiện tiên quyết đã cài đặt mongodb

Bước 1: Vào thư mục của project bật cmd và gõ: npm i (install các dependency của project)

Bước 2: Chạy file mongod.exe ( trong thư mục cài đặt của mongodb vào server => 3.x => bin => mongod.exe )

Bước 3: Bật lại cmd ở thư mục của project và gõ: node app, khi này server sẽ được chay ở local

Các thư viện chính đã sử dụng:

Name Mục đích
Mongoose Đóng vai trò query builder để giúp tương tác giữa NodeJS và Mongodb
PassportJS Dùng trong các thao tác authenticate
Bcrypt Dùng để mã hóa password khi lưu vào database
MomentJS Giúp đồng bộ hóa thời gian
Ejs Đóng vai trò là view engine giúp trong quá trình render html

Cách import export db của mongo:

Điều kiện tiên quyết: Cài đặt biến môi trường của mongodb vào window (linux không rõ): Link youtube hướng dẫn Sau khi cài xong thì mở 1 tab cmd và gõ mongod.exe để chạy db (tab này phải luôn chạy trong quá trình làm việc với db)

  • Cách export dữ liệu: Vào thư mục chứa project mở cmd: mongodump --host localhost --port 27017 Khi này trong thư mục sẽ xuất hiện folder dump chứa dữ liệu đã được export
  • Cách import dữ liêu: mongorestore -d project3 dump/project3

it4421-20171-san-dau-gia's People

Contributors

kien-lai avatar itlinhph avatar toanqn avatar

Watchers

James Cloos avatar minhnb avatar  avatar  avatar  avatar

Forkers

doanbk itlinhph

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.