Giter Club home page Giter Club logo

vue-twitterclone's Introduction

tweetclone

Maybe a Twitter clone.

Table of Contents

Checklist

Initial setup

  • Create an Angular project. (Later vue.js, same process)
  • Create a server and a config folder
    • Create the index.js for config
    • Create server.js
  • Install node packages
    • express
    • mongoose
    • cors
    • body-parser
    • bcrypt
    • joi
  • Create the basics components on Angular
    • home
    • page-not-found
    • api
  • Manage the routes on Angular
  • Make a reference of dist folder on server
  • Create a connection of mongodb with mongoose

User - API CRUD

  • User routes
  • Create User
    • Create POST signup
      • Validate fields
        • Create validation middleware
      • Check if email is unique
      • Hash the password
      • Insert into DB
      • Remove the password from the response body
  • Get Users
    • Get all users
      • Find all the users
      • Check if the state propertie is true
    • Get specific user
      • Find an specefic user
      • Check if the state propertie is true
  • Edit User
    • Validate fields
      • Create validation middleware
    • Check that the original content is not equal to the modified
    • Find an specefic user
    • Check if the state propertie is true
    • Update the DB
  • Delete User
    • Find an specefic user
    • Check if the state propertie is true
    • Update the DB

User - Frontend

  • Angular routes (Vue.js)
    • Landing page
    • Signup page
  • Form for signup
    • Email, username and password fields
    • Get the values of the fields
    • Form submitted
      • Verify email
      • Verify username
      • Verify password
      • Display validation errors
      • POST request to the server
      • Display server errors
      • Succesful signup, redirect to login page
      • Display gif animation

Auth

  • Login
    • Validate fields
    • Search the user through the username
    • Compare the password with the hashed password
    • Display server error or success
  • jwt
    • Sign the jwt
      • Create the payload
      • Store on config file the private key
      • Option expiresIn of 1 day

To-Do

  • Heroku repository
  • Error handler function
  • Best way to manage routes, or this method is good??
  • env variables
  • Styles SCSS (I will try to not use bootstrap)... Ok, maybe just for the columns

Assets

Loading icon

vue-twitterclone's People

Contributors

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