当前位置: 首页 > 软件库 > Web应用开发 > >

express-react-fullstack

授权协议 Readme
开发语言 JavaScript
所属分类 Web应用开发
软件类型 开源软件
地区 不详
投 递 者 夏侯玄天
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

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 git@github.com: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/Redux, MySQL Boilerplate Get Started 1. Prerequisites NodeJs NPM - Node package manager MySQL - Relational database management system (RDBMS) 2. Installation On the command prompt run t

  • express-react-typescript A boilerplate to build web application using Express and React with help of Typescript. It's configured to separate client-side JavaScript and CSS bundles and your files as as

  • React application with Express server This project was bootstrapped with Create React App. Then an Express server was added in the server directory. The server is proxied via the proxy key in package.

  • Stripe Server Checkout with React and Express Deprecated due to SCA: A full walkthrough tutorial of implementing this boilerplate project. SCA ready Tutorials: Stripe Server Checkout Stripe Webhook Fu

  • React Application with JWT Authentication Overview This is an example application that serves an ExpressJS JSON api to a React client application. The React application is configured for a basic JWT a

  • DEPRECATED. This project is not maintained anymore. Starter for Express, React, Redux, SCSS applications Features Webpack development and production environment configuration Webpack SCSS configuratio