Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

borelli28/Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog

A blog CMS built with React.js and Express.js

Setup

Clone Repo

git clone https://github.com/borelli28/Blog.git

Cd into project

cd Blog
Backend

Setup /backend

cd backend && bun install

or use NPM

cd backend && npm install

Create .env in /backend

echo "JWT_SECRET=your_jwt_secret" > .env && \
echo "CSRF_SECRET=your_csrf_secret" >> .env && \
echo "ENV=development" >> .env

Start backend server

bun server.js

or use NPM

npm start
Frontend

Setup frontend in a new tab

cd ../frontend && bun install

or use NPM

cd ../frontend && npm install

Create .env in /frontend

echo "VITE_API_URL=http://localhost:8080/api" > .env && \
echo "VITE_BACKEND_URL=http://localhost:8080" >> .env

Start frontend server

bun dev

or use NPM

npm run dev

Open browser in http://localhost:3000/register

Use admin as username

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks