Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.18 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.18 KB

MERN React Admin Dashboard with Redux Toolkit Queries

Built following a YouTube tutorial by EdRoh.

Installation

MONGO_URL = <url-to-your-mongo-db>
PORT=5001
  • Install all the dependencies using:
npm i
  • Uncomment the part in server/index.js that talks about importing data. After the first run of the server, make sure to re-comment this.
    // User.insertMany(dataUser);
    // Product.insertMany(dataProduct);
    // ProductStat.insertMany(dataProductStat);
    // Transaction.insertMany(dataTransaction);
    // OverallStat.insertMany(dataOverallStat);
    // AffiliateStat.insertMany(dataAffiliateStat);
  • Move into your client directory and install all of their dependencies:
npm i
  • Add a .env.local file to the client directory. Inside add:
REACT_APP_BASE_URL=http://localhost:5001
  • Open up two terminals and run these commands:
cd server
npm run dev
cd client
npm run start
  • This should automatically open react, it may take a while to load...