Giter Site home page Giter Site logo

thinkerelwin / social-app-fullstack Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.03 MB

an fullstack app with gathered best practices over the years

Home Page: https://soical-app.netlify.app/

JavaScript 1.01% HTML 1.12% TypeScript 97.46% CSS 0.31% Shell 0.10%
node react vite

social-app-fullstack's Introduction

App preview

A demo app that contains both the Front-end and Back-end project, it's a social media app with an advertisement on the side.

Guest account: [email protected]/zxcvs

Features

  • Responsive: have layouts for mobile and desktop

  • High score on Lighthouse audition: achieved by following best practices such as setting cache control, optimizing image size, utilizing CDN, etc.

    blog performance

  • With code quality in mind: auto lint codes with Eslint, Prettier, Stylelint before commit, and use SonarQube to improve code quality.

  • Dark mode: ease on your eyes.

  • A test environment that is ready to use: have a basic E2E and unit test cases written with Cypress

User Story

  • Can register a new user by clicking the "sign up" text on the bottom left corner of the login page
  • Can log in by entering the email and password on the login page
  • The user can create a post with text, image, or both by using the create post widget at the center top.
  • The user can like a post by clicking the like button located on the bottom left of a post
  • The user can add other users as a friend by clicking the add button on the top right side of a post
  • The user can toggle the display of comments by clicking on the comment button located at the bottom of a post
  • The user can toggle dark mode by clicking the moon icon on the header

Running tests

  • "npm run cypress:run-unit" to run unit test cases(need a local server running because there's no stub on the server response)
  • 'npm run cypress:coverage' to get an E2E code coverage report (need to run E2E test once to collect the data).
  • For tests written with Jest and React Testing Library, check here

p.s. Cypress v13 is not fully compatible with vite v5 yet, you need to restart Cypress to change the testing type, or you will encounter an error otherwise

License

social-app-fullstack's People

Contributors

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