Coder Social home page Coder Social logo

proyecto-final-ga's Introduction

Final Project General Assembly

For this project, we have drawn on our own personal experience. We have developed a website in which a user can use pictograms to communicate with other users.

We also give you the option to register and have more advanced functions or, alternatively, to log in as a guest and use your local machine.

Live Demo

UI Wireframe Design

For the design we have based ourselves on a template from the site Sketch app Sources, specifically Online Tutoring Website Concept.

  • Home Home
  • Login Login
  • Dashboard Dashboard
  • Details Details

Deployment with Netlify

For deployment we use Netlify, offering hosting and serverless backend services for web applications and static websites.

To get started with manual deploys

  netlify deploy

To do a production deploy

  netlify deploy --prod

Run Locally

Clone the project

  git clone https://github.com/Lyanna666/proyecto-final-GA

Go to the project directory

  cd Pictogramas

Install dependencies

  npm install

Start the server

  npm run start

Tree Directory

    ├───api
    ├───components
    │   ├───aside
    │   ├───elements
    │   ├───Error
    │   ├───Favorites
    │   ├───Footer
    │   ├───Header
    │   ├───HeaderMenu
    │   ├───Home
    │   ├───loading
    │   ├───pagination
    │   ├───Pictograms
    │   └───table
    ├───Constants
    ├───pages
    ├───styles
    └───Utils

API Reference

Get all items

  GET /api/items
  https://api.arasaac.org/api/pictograms
Parameter Type
api_key string

Code

  • Constants with the different URL we are going to use.
const urlGlobal = 'https://api.arasaac.org/api/pictograms';
const urlAll = '/all/';
const urlBest = '/bestsearch/';
const urlSearch = '/search/';
  • Request with asynchronous function and fetch.
export async function fetchAllPictograms(language) {
  try {
    const response = await fetch(urlGlobal + urlAll + language, {
      method: 'GET',
    });
    const pictograms = await response.json();
    return pictograms;
  } catch (error) {
    console.error({ error });
    return error;
    // alert('Ha ocurrido un error:', error);
  }
}
  • Example of error when request fails

    error

Framework

Authors :octocat:

proyecto-final-ga's People

Contributors

lyanna666 avatar jacobo87 avatar

Stargazers

 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.