Skip to content

Basic Starter built with React and Express Includes React, Redux, React-router, JWT auth, styled-components and antd.

License

Notifications You must be signed in to change notification settings

Bauwi/react-express-jwt-starter

Repository files navigation

React - Express - JWT Starter

Basic Starter built with React and Express

Includes React, Redux, React-router, JWT auth, styled-components and antd

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • Having a node 7.6 or later version installed on your machine.

  • Having MongoDB installed on your machine.

Installing

After cloning the repo:

install node modules in the root directory AND in the client directory:

npm install

Run the local MongoDB specifying the dbPath for mongod to use as a data directory

./mongod --dbpath ~/DATA_DIRECTORY_PATH

Start the webpack development server and the Express server with this single command. From the root directory :

npm run dev

Deployment

You can build your bundle before deploying using :

npm run build

You will need to set a JWT_SECRET and MONGODB_URI env variables for your prod server.

Remove Antd

To get rid of antd :

npm uninstall antd react-app-rewired react-app-rewire-less
  • Remove the config-overrides.js file in the client directory.

  • Remove antd css import in index.css

  • Replace react-app-rewired mentions by react-scripts in your client package.json scripts section.

Built With

  • React - 16.6.0 - The web framework used

  • Redux - 5.0.6 - Predictable state container for JavaScript apps

  • Express - 4.15.4 - Web framework for Node.js

  • React-router - 4.3.1 - Client-side routing

  • Antd - 3.1.3 - Components Library

Contributing

Just a starter.

Authors

Bauwi

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Basic Starter built with React and Express Includes React, Redux, React-router, JWT auth, styled-components and antd.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published