Skip to content

alfaarghya/blog-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog-web

it's a simple blogging application to read, and write blogs.

How to run 🏃🏽‍♂️ locally?

  1. Backend

    • First create a .env file at backend directory. then put this following data,
    PORT = 8080
    JWT_Secret = "YourSecretPassword"
    DATABASE_URL = "postgres connection string"
    • now run this command in terminal
    cd .\backend\   #go to the backend directory
    npm install     #install npm package
    npx prisma generate  #generate prisma client
    npm run dev     #start the server
  2. Frontend

    • now run this command on another terminal
    cd .\frontend\   #go to the frontend directory
    npm install     #install npm package
    npm run dev     #start the application

Snapshot

Sign Up

Sign In

Blogs

Read Blog

Create Blog

Update Blog

video demo

2024-04-03.17-24-24.mp4

Tech Stack

Backend

Run Time Environment Node.js
Server Express.js
Language TypeScript
Database Postgres
ORM Prisma
Middleware Zod
Password Encryption argon2
User authentication JWT token

Frontend

Run Time Environment Node.js
Framework React.js
Language TypeScript
Database Postgres
Routing react-router-dom
Middleware Zod