@ramprasathmk/poet-app

A simple web application that allows users to post, edit, and delete poems. The application is built using Node.js and MongoDB.


Keywords
poet-app, poem-app, poem, ejs-express, ejs-templates, express-app, express-js, mongoose, mongoose-schema, nodejs
License
MIT
Install
npm install @ramprasathmk/poet-app@1.0.1

Documentation

Poet Posting Web Application

Description

A simple web application that allows users to post, edit, and delete poems. The application is built using Node.js and MongoDB.

Features

  • Post new poems
  • Edit existing poems
  • Delete poems
  • View all posted poems

Project Structure

Setup

  1. Clone the repository:

    git clone https://github.com/ramprasathmk/poet-app.git
    cd poet-app
  2. Install dependencies:

    npm install
  3. Start MongoDB: Ensure MongoDB is running locally. If you're using a local installation, start MongoDB with:

    mongod
  4. Start the application:

    nodemon server.js

    else use:

    npm start
  5. Access the application: Open your browser and navigate to http://localhost:3000

Note

  • Create a .env file

  • Create your port number, eg. PORT=3000

  • Create your mongodb url, eg. DB_URL=mongodb://127.0.0.1:27017/your_database_name

Usage

  • Navigate to the home page to view all poems.

  • Use the form to add a new poem.

  • Click "Edit" to modify an existing poem.

  • Click "Delete" to remove a poem.

Technologies Used

  • Node.js

  • Express.js

  • MongoDB

  • Mongoose

  • EJS (Embedded JavaScript templates)

Contributing

Feel free to modify this template to better suit your project’s specific needs. If you need further customization or have any questions, let me know!