Basic Starter built with React and Express
Includes React, Redux, React-router, JWT auth, styled-components and antd
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.
-
Having a node 7.6 or later version installed on your machine.
-
Having MongoDB installed on your machine.
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
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.
To get rid of antd :
npm uninstall antd react-app-rewired react-app-rewire-less
-
Remove the
config-overrides.js
file in theclient
directory. -
Remove antd css import in
index.css
-
Replace
react-app-rewired
mentions byreact-scripts
in your clientpackage.json
scripts section.
-
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
Just a starter.
Bauwi
This project is licensed under the MIT License - see the LICENSE.md file for details