GithubHelp home page GithubHelp logo

viniciusshenri96 / github-user-search-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 232 KB

In this project I was able to put into practice the MVC architecture

Home Page: https://vinicius-github-user-search.netlify.app

License: MIT License

SCSS 44.19% HTML 20.12% JavaScript 35.69%
html-css javascript mvc-architecture

github-user-search-app's Introduction

GitHub user search app

ย 

๐Ÿšง GitHub user search app ๐ŸŸข Completed ๐Ÿš€ ๐Ÿšง

ย 

Project description ๐Ÿ“š

This is a solution to the challenge GitHub user search app.

In this project I was able to put into practice the MVC architecture

Challenge Difficulty - Junior

ย 

What did I put into practice?

  • MVC architecture: a pattern of software architecture responsible for contributing to the optimization of speed between requests made by user commands.

ย 

Model: Business logic, state, API

// State
export const state = {
  users: {},
  darkMode: "",
};

// HTTP/API
const res = await Promise.race([
  fetch(`${API_URL}${query}`),
  timeout(TIMEOUT_API),
]);

Controller: Application logic, is the controller that bridges the gap between Model and View

// Searching for information in the model
await model.searchUserGitHub(query);

// Sending information to the View
resultsView.render(model.state.users);

View: Presentation Logic, what will be shown on the screen to the user

  errorMessage() {
    const markup = `
    <span class="content__results">No results</span>
    `;
    this._parentForm.insertAdjacentHTML("afterbegin", markup);
  }

Links

ย 

My process

Built with

ย 

๐Ÿ‘จโ€๐Ÿ’ป Author

github-user-search-app's People

Contributors

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