SaveTheGaels is my personal blog hosted here. It uses the MERN stack (MongoDB, Express, React, Node.js). The project supports admin authentication using Passport.js, authenticated users can then create, read, update, and delete blog posts (which are seen globally).
Note: this project requires a MongoDB database.
First, clone the repository and install dependencies using npm.
git clone https://github.com/lukebrichey/SaveTheGaels.git
cd SaveTheGaels
npm install
First, create a .env file in the backend directory using the following commands:
cd backend
touch .env
Then, initialize the following environment variables:
DEVELOPMENT_DATABASE_URI=<your_mongodb_uri>
DEVELOPMENT_SESSION_SECRET=<your_express-session_secret>
You can run the app locally using the following command in the project root:
npm run server
To start the development server, perform the following commands:
cd backend
npm run dev
To start the frontend, perform the following commands:
cd frontend
npm run start