Giter Club home page Giter Club logo

avancereactcourse's Introduction

https://emmaisworking.dev/static/images/GitHubCover.png

Description

Create an application to upload and share pet photos using Webpack, GraphQL, React Hooks, React Router, SEO and PWAs.

Steps to start our project:

  • Step 1: We are going to clone the repository from [advamced react Platzi course](https: github.com/midudev/course-platzi-react- advanced) using git clone URL_DEL_REPO on our console.
  • Step 2: We are going to install webpack and webpack-cli as development dependencies with: npm i webpack wepack-cli --save-dev`.
  • Step 3: We will create a folder called src and inside it a fileindex.js in which we will only put a console.log ('We start the course!').
  • Step 4: We will create in the root of our project a file webpack.config.js which will have all the webpack configuration
  • Step 5: We will install html-webpack-plugin with: npm and html-webpack-plugin --save-dev`.
  • Step 6: We will install webpack-dev-server with: npm and webpack-dev-server --save-dev`.
  • Step 7: We will add a new script called dev:"dev": "webpack-dev-server".
// webpack.config.js
const HtmlWebpackPlugin = require("html-webpack-plugin")

module.exports = {
        output: {
                filename: 'app.bundle.js'
        },
        plugins: [
                new HtmlWebpackPlugin()
        ]
}

React and Babel installation

In this class we are going to configure React by installing the dependencies npm i react react-dom and Babel to be able to transpile jsx code into JavaScript Vanilla with: npm i @ babel / core @ babel / preset-env babel-loader @ babel / preset-react - -save-dev Now we will add the following to our webpack.config.js:

// webpack.config.js

{/*...*/}
module.exports = {
        {/*...*/}
        module: {
                rules: [
                        {
                                test: /\.js$/,
                                exclude: /node_modules/,
                                use: {
                                        loader: 'babel-loader',
                                        options: {
                                                presets: [
                                                        '@babel/preset-env',
                                                        '@babel/preset-react'
                                                ]
                                        }
                                }
                        }
                ]
        }
}

###ย 

Preview

Petgram

Notes

Notion link

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.