Giter Club home page Giter Club logo

express-react-fullstack's Introduction

Full Stack React Express Application

Introduction

This repository contains a simple Full Stack Express / React application. It is intended to demonstrate as wide an array of features as possible while still keeping the app simple and easy to understand.

This application accompanies the course on Pluralsight Building a Full Stack Application with Express and React [Note: Add link].

This application consists of Front End component (located in the app directory) that is built with Redux and React. It also has a Back End component (located in the server directory) that uses Express to manage

Installation

First, install the programs required to run the application:

Next, clone this repository and install dependencies:

git clone [email protected]:danielstern/express-react-fullstack.git
npm install

Also, make sure MongoDB is running by navigating to the installation directory and running (in cmd or terminal), replacing the path with your chosen Mongo directory:

C:\Data\bin\mongod.exe

Now, start the development environment with the following command:

npm run dev

The application should open automatically.

Troubleshooting

Problem: The application won't start!

Try:

  1. Run npm install again
  2. Update your version of Node.js to the latest
  3. Clone the finished repo and start from there

Problem: I'm getting weird error XYZ!

Try:

  1. Cancel npm run dev (with ctrl-C on windows) and run it again
  2. If there error mentions any particular file, visit that file and make sure you didn't make any common errors (capitalization of property names, forgetting to destructure paramaters with curly brackets)
  3. Still no luck? Clone the finished repo and prune away parts of it until you are at the point you left off.

Challenge Task Solutions

Connected Username Component

  1. Create a connected username component which matches user data with an ID provided as a prop.
  2. Update the server-side state assembly process to include the usernames (but not passwords or any sensitive data) of any users which will be relevant to the current session.

Sign Up

This version of the application is found at the Add Sign Up Branch.

  1. Add a link to the sign up page from the login page.
  2. Create a Sign Up route, which is almost identical to the Login route.
  3. Add a saga to communicate requests from the Login Route to the server.
  4. Add a route to the server which creates new users in the database.

Security

Coming February 2019.

express-react-fullstack's People

Contributors

danielstern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

express-react-fullstack's Issues

jsx file not working

Hi,
I'm followed you to create react app with webpack but i getting "couldnt find the module:error" when i use jsx file. working fine with js file. Please guide me where im going wrong.. webpack and package.json is same as yours with additional packages.

Package.json:
{
"name": "my-application",
"version": "1.0.0",
"description": "Application ",
"private": true,
"keywords": [
"react",
"materialui",
"redux"
],
"author": "test",
"homepage": ".",
"license": "ISC",
"dependencies": {
"@date-io/core": "^1.3.6",
"@date-io/date-fns": "^1.0.1",
"@date-io/moment": "^1.3.13",
"@material-ui/core": "^4.9.10",
"@material-ui/icons": "^4.9.1",
"@material-ui/pickers": "^3.2.10",
"@material-ui/styles": "^4.9.10",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"axios": "^0.19.2",
"body-parser": "^1.18.3",
"bootstrap": "^4.1.3",
"clsx": "^1.1.0",
"css-loader": "^3.5.3",
"date-fns": "^2.13.0",
"history": "^4.10.1",
"node-sass": "^4.14.1",
"prop-types": "^15.7.2",
"query-string": "^6.12.1",
"react": "^16.13.1",
"react-beautiful-dnd": "13.0.0",
"react-custom-scrollbars": "^4.2.1",
"react-dom": "^16.13.1",
"react-loading-skeleton": "^2.0.1",
"react-redux": "^7.2.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.1",
"react-textarea-autosize": "7.1.2",
"redux": "^4.0.5",
"redux-devtools-extension": "2.13.8",
"redux-logger": "3.0.6",
"redux-thunk": "2.3.0",
"sass": "^1.26.5",
"sass-loader": "^8.0.2",
"single-spa": "^4.3.7",
"single-spa-react": "^2.14.0",
"style-loader": "^1.2.0",
"styled-components": "5.1.0",
"url-loader": "^4.1.0",
"webpack": "^4.17.2",
"cors": "^2.8.4"
},
"scripts": {
"start-react": "react-scripts start",
"build-react": "react-scripts build",
"test": "echo "Error: no test specified" && exit 1",

},
"eslintConfig": {
    "extends": "react-app"
},
"browserslist": {
    "production": [
        ">0.2%",
        "not dead",
        "not op_mini all"
    ],
    "development": [
        "last 1 chrome version",
        "last 1 firefox version",
        "last 1 safari version"
    ]
},
"devDependencies": {
    "@date-io/core": "^1.3.6",
    "@date-io/date-fns": "^1.0.1",
    "@date-io/moment": "^1.3.13",
    "@material-ui/pickers": "^3.2.10",
    "date-fns": "^2.13.0",
    "file-loader": "^6.0.0",
    "html-loader": "^1.1.0",
    "html-webpack-plugin": "^4.2.0",
    "moment": "^2.25.3",
    "path": "^0.12.7",
    "webpack-cli": "^3.1.2",
    "webpack-dev-server": "^3.1.7",
    "clean-webpack-plugin": "0.1.19",
    "copy-webpack-plugin": "^4.5.2",
    "@babel/core": "^7.0.0",
    "@babel/node": "^7.0.0",
    "@babel/preset-env": "^7.0.0",
    "@babel/preset-react": "^7.0.0",
    "@babel/register": "^7.0.0",
    "babel-loader": "^8.0.2",
    "concurrently": "^4.0.1",
    "cross-env": "^5.2.0",
    "jest": "^23.6.0",
    "style-loader": "^0.23.0"
}

}

How to run app

The answer below

  1. npm run start-dev
    => to run both backend and fe-end
    Done.
  2. you can use Robo3T to view db
    image

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.