• Bootcamp (9)
    • đŸ“± 236 - 992 - 3846

      📧 jxjwilliam@gmail.com

    • Version: ‍🚀 1.1.0
  • DEV

    BootcampBackend2020-12-17


    Document

    Improvement

    1. etc/config.js

    Hold all the config information, e.g. db config, web-server config.

     import { WebServer } from '../etc/config'
     WebServer.PORT
     WebServer.getHTTPUrl()

    So the web-server PORT, URL are united from same config file.

    It is useful when align the

    s, like menu, tabs, footer lists.

    3. improve media-query for Responsive Web Design

    assets/style.scss

    add media-object in About component,

    4. add Chat tab, make socket.io work.

    Initialize socket.io in src/index.js as global variable, and in Chat.js, send message to server and ready to receive message from server.

    add socket-login-users counters,

    5. add Redis tab

    Redis Pub/Sub with socket.io, works fine. Can be multiple-subscribers for redis extensions.

    update redis pub/sub

    6. add RabbmitMQ tab

    1. work queue.

    7. add NotFound component.

    1. If there is a wrong router, e.g. /users-nyc/, it should return NotFound remindering.
    2. If RESTFul APIs, e.g. /api/users/, it should return rest-json data from server.
    3. generally react-router-dom-v4 Route return 3 props: { match, location, history }
    4. match.url, match.params
    5. location.pathname
    6. currently work fine, as expected.
    7. update auth login to mongo.

    Improve

    • set-up /etc/footer-config, use it to loop footer flexbox instead of hard-code.
    • in Rooter->Footer, nest <Link/> inside <Button/>
    • Move socket ‘onlineLoggedIn’ from LoginApp.js to Header.js, when user login/logout, the header login number will update auto.
    • Use Header->state.totalLogins to display the total-login-number.