Cookbook is a place for me to keep, update, and read my recipes. Coded in MERN stack
- Clone Repository
git clone https://github.com/ThomJGregory/cookbook
- Run npm install to install necessary node_modules
npm install
-
Create .env file in root directory
-
Within the .env file, add variables for your Node Environment(NODE_ENV), backend server port (PORT), your MongoDB URI (MONGO_URI), and your JWT secret (JWT_SECRET)
NODE_ENV = development
PORT = 5000
MONGO_URI = mongodb+srv://username:password@yourcluster.xxxx.mongodb.net/?retryWrites=true&w=majority
JWT_SECRET = mysecret
- To start server:
Node:
npm start
Nodemon:
npm run server
- To start client:
npm run client
- To run both simultaneously:
npm run dev
Once the database is connected: Add, View, Edit, and Delete your favorite recipes!