Giter Site home page Giter Site logo

training-prj's People

Contributors

duong110397 avatar thanhhiep206 avatar

Watchers

 avatar  avatar

training-prj's Issues

Phân quyền user

user có 2 quyền,

  • admin: cho phép thêm, sửa, xóa thông tin của tất cả user
  • user: chỉ được phép xem thông tin của những user khác, và tự update thông tin của chính mình

thông báo slack

tạo 1 channel trên slack
gửi tin nhắn thông báo trên slack mỗi khi có 1 bài post mới được gửi
mục đích là mình sẽ nhận đc thông báo mỗi khi có guest gửi bài lên hệ thống

Quản lý users

yêu cầu:
có đầy đủ 7 method mặc định của rails trong UsersController
sau khi tạo mới user, thực hiện gửi mail vào email của user được tạo mới (nội dung mail mang tính chất thông báo, tự nghĩ nội dung :v)
có validate cơ bản cho các trường:
email: require, format_email
password: require
name: require, maxlength: 50
birthday: sử dụng thư viện date time có sẵn bất kỳ
...

thời gian kỳ vọng: 16h

chức năng blog

tạo bảng blogs gồm các trường

  • user_id(int): người viết bài
  • title(string): tiêu đề bài viết
  • content(text): nội dung bài viết
  • status(int): trạng thái bài viết public or non-public
  • commit_status: trạng thái của bài viết khi guest gửi bài (waiting, reject, approve)
  • image: cho phép người dùng upload ảnh (dùng active storage của rails, không cần define trường này trong database)

quản lý:

  • all user được tạo blogs
  • phân quyền tương tự user manage
  • có chức năng preview blog
  • có chức năng guest gửi bài: mặc định status là non-public và commit_status là waiting

Hiển thị

màn hình preview: ảnh + content

màn hình homepage(không cần authen):

  • sidebar(bên trái màn hình): danh sách những bài viết ở trạng thái public
  • lựa chọn 1 bài, hiển thị lên màn hình, hiển thị như màn hình preview
  • header có button login

đẩy init code rails

yêu cầu:

  • sử dụng gem mysql2, đã config
  • màn hình home hiển thị Hello world thẻ h1
  • add rubocop gem để define code rule

fix bug

1, content của post bị lỗi font chứ
2, chưa đăng ký được tài khoản
anh nghĩ là mình nên bỏ chức năng đăng ký đi, chỉ ai được cấp tài khoản thì sử dụng được hệ thống
3, căn thẳng với button bên dưới
Screen Shot 2022-11-08 at 08 30 06
4, home page đối với guest thì không hiển thị side bar
5, login fail có message thông báo

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.