Backend | Frontend | Database | Testing |
---|---|---|---|
Node | Vite | PostgreSQL | RTL |
Express | React | SQL | Vitest |
Postman |
Backend | Frontend | Database | Testing |
---|---|---|---|
cors | react-bootstrap | pg | @testing-library/react |
dotenv | bootstrap | @testing-library/jest-dom | |
concurrently | eact-router-dom | vitest-dom | |
nodemon |
-
The data for this project can be found in db.sql. If you have PostgreSQL installed on your local machine, you can follow the instructions inside db.sql to set up the database.
-
Go to your source directory in your terminal and run the command:
git clone https://github.com/beyzanurck/blog-app.git
. -
Go to the project folder (
cd blog-app
) and clean owner's git:rm -rf .git
. -
Go to the server folder in the project (
cd server
) and run the commandnpm install
. -
Go to the client folder (
cd .. and cd client
) and run the commandnpm install
. -
Go to the server folder in the project (
cd server
) and run the commandtouch .env
. -
Place
DB_URL="postgresql://localhost/blogapp"
inside .env. -
While you are in the sever folder, run the command
npm run dev
to start both servers. -
Open your web browser and visit
http://localhost:1212
andhttp://localhost:5173
.