Coder Social home page Coder Social logo

luiscostalafc / e-commerce-application Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brandonvilla21/e-commerce-application

0.0 1.0 0.0 1.63 MB

An e commerce front end application build with: React + Next.js + TypeScript + Apollo Server

TypeScript 96.99% JavaScript 1.01% CSS 2.00%

e-commerce-application's Introduction

E commerce app

Front-end application based on React + NextJS + TypeScript + Apollo Server + Material UI

Installation guide

1. Install dependencies

Run this command in order to install the dependencies

$ yarn

or alternatively...

$ npm install

2. Create an .env file

Env variable              Description          Example
GRAPHQL_URL This is the endpoint to the GraphQL server. GRAPHQL_URL=http://localhost:4000/

3. Run the application

This next command will start a server by default on port 3000

$ npm run dev

Rendering order. Understanding the resolution order of the Next.js application

These are the running orders, depending who is rendering the application.

On the server:

  1. app.getInitialProps
  2. page.getInitialProps
  3. document.getInitialProps
  4. app.render
  5. page.render
  6. document.render

On the server with error:

  1. document.getInitialProps
  2. app.render
  3. page.render
  4. document.render

On the client

  1. app.getInitialProps
  2. page.getInitialProps
  3. app.render
  4. page.render

e-commerce-application's People

Contributors

brandonvilla21 avatar marcos8896 avatar alexbuenrostro12 avatar

Watchers

James Cloos 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.