Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 1007 Bytes

README.md

File metadata and controls

62 lines (40 loc) · 1007 Bytes

Cookbook

Cookbook is a place for me to keep, update, and read my recipes. Coded in MERN stack

Installation

  1. Clone Repository
git clone https://github.com/ThomJGregory/cookbook
  1. Run npm install to install necessary node_modules
npm install
  1. Create .env file in root directory

  2. 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
  1. To start server:

Node:

npm start

Nodemon:

npm run server
  1. To start client:
npm run client
  1. To run both simultaneously:
npm run dev

Usage

Once the database is connected: Add, View, Edit, and Delete your favorite recipes!

License

MIT