Code Monkey home page Code Monkey logo

task-list-react-aws's Introduction

Task List React AWS

This is a learning project to help brush up on full stack AWS skills.

This project follows the free tutorial instruction on YouTube: https://www.youtube.com/watch?v=FHn8c4Rk_yo

Thank you to the Code With Vini YouTube channel.

Cheers :)

Create ReactJS App

The following command was used to create the initial ReactJS bootstrap files:

cd ui_react
npx create-react-app .

After create-react-app completes, verify the boilerplate ReactJS app was successfully created:

./ui_react

npm start

This should show the boilerplate ReactJS app appear in a browser.

Because this repo should be a Mono-repo, remove the git version control folder, .git created with this ReactJS app:

./ui_react

rm -rf .git

The repo will be created at the root of this Mono-repo instead of in the individual sub-project folders.

Install the Material UI Core library into the ReactJS project:

./ui_react

npm install @mui/material @emotion/react @emotion/styled

Also install Material icons:

./ui_react

npm install @mui/icons-material

Install axios and classnames node modules:

./ui_react

npm install axios classnames

Remove files that aren't needed:

./ui_react/src/

logo.svg
reportWebVitals.js
setupTests.js
App.test.js
App.css

Remove the imports that are no longer in the project, from ./ui_react/src/App.js and replace the contents of the <div className="App"> with "Hello World".

Clear out the ./ui_react/src/index.css file so that it's blank.

Remove reportWebVitals from ./ui_react/src/index.js and remove <React.StrictMode>.

Finally, confirm that the ReactJS app still starts with npm start. There should just be a "Hello World" blank page.

Move the .gitignore to the root of the project and add /ui_react into the .gitignore.

After these steps above, this is the first commit of the project.

VSCode Extensions Used in this Tutorial

Example usage - create boilerplate code:

# React Arrow Function Component
rafc 

Initialize the API Sub Project

Just use the defaults (hit enter) when initializing npm:

./api_express

npm init

Install all of the dependencies for the API:

./api_express

npm install express nodemon cors serverless-http @aws-sdk/client-dynamodb @aws-sdk/lib-dynamodb

Delete the test under "scripts" in ./api_express/package.json and replace it with:

    "start": "node index",
    "dev": "DEVELOPMENT=true nodemon index"

The above "dev" script name sets an environment variable, DEVELOPMENT with a value of "true". `nodemon allows hot reload of the app.

Add "type": "module", to ./api_express/package.json so that imports can be used instead of require.

task-list-react-aws's People

Contributors

g-milligan 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.