Code Monkey home page Code Monkey logo

serverebook4u's Introduction

ServerEbook4U

URL SERVER: https://ebook4u-server.onrender.com

Mô tả:

Dự chủ yếu phục vụ cho website đọc sách bao gồm các tính năng trả api sách, api người dùng, api thống kê lượt ghé thăm trang web hằng ngày, ...

Ngôn ngữ sử dụng

  • Chủ yếu là NODEJS, framework ExpressJS
  • Database sử dụng MongoDB dùng thư viện mongoose để tương tác

Cách sử dụng

  • Cài đặt các thư viện đã sử dụng
    npm i
  • Chạy project
    npm start

Một vài kỹ thuật sử dụng

  • Dùng Crypto-JS để mã hóa với mỗi mật khâu dù giống nhau nhưng cho 2 encrypt khác nhau
  • Dùng Multer + Cloudinary để lưu trữ hình ảnh
  • Dùng Nodemailer + service gg để làm send mail reset mật khẩu
  • Dùng socket.io để làm realtime chat + notification
  • Dùng JWT để tạo accessToken, refreshToken để xác nhận phân quyền tương tác API

API

Document API BackEnd Ebook4U
Host: https://ebook4u-server.onrender.com
Cấu truc API trả về:
{
success: tình trạng thực hiện mang 2 giá trị true, false
message: "Internal server error!" (tên lỗi)
data: (kết quả JSON nếu thành công)
}

Thành công:

  • Status: 200
  • Success: true
  • Data: JSON

Thât bại:

  • Status: 400
  • Success: false,

Lỗi server:

  • Status: 500
  • Success: false

Các URL tương tác API

Tạo sách

Lấy tất cả sách

Lấy thông tin 1 cuôn sách cụ thể

Sửa thông tin 1 cuốn sách cụ thẻ

Xóa một cuốn sách cụ thể

serverebook4u's People

Contributors

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