alfaarghya / blog-web

a simple blogging application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

a simple blogging application


Languages

Language:TypeScript 97.2%Language:JavaScript 1.8%Language:HTML 0.9%Language:CSS 0.2%