Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Project

This is a simple blog project where users can create, edit, and delete posts.

Database Configuration

  1. Create a PostgreSQL database and fill in the connection details in ./DbConfiguration.env

  2. Run the createTableAndDb.sql script to create the necessary database and tables

    psql -U your_username -d BlogDB -a -f sql/createTableAndDb.sql

    Replace "your_username" with your PostgreSQL username.

Project Setup

  1. Install dependencies

    npm install
  2. Start the application

    • In development mode using nodemon

      nodemon app.js

      This will automatically restart the server whenever changes are made.

    • In production mode

      node app.js

    Visit http://localhost:your_port in your browser, where your_port is the port on which your Node.js application is running.

Usage

  • Visit the homepage to view existing posts.
  • Click on "Create New Post" to add a new post.
  • Click on "Edit" to modify an existing post.
  • Click on "Delete" to remove a post.

Feel free to explore and enhance the functionality as needed!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages