poet-app v1.0.2
Quote Posting Web Application
Description
A simple web application that allows users to post, edit, and delete quotes. The application is built using Node.js and MongoDB.
Features
- Post new quotes
- Edit existing quotes
- Delete quotes
- View all posted quotes
Project Structure
- refer the Project Structure here.
Setup
Clone the repository:
git clone https://github.com/ramprasathmk/poet-app.git cd poet-appInstall dependencies:
npm installStart MongoDB: Ensure MongoDB is running locally. If you're using a local installation, start MongoDB with:
mongodStart the application:
nodemon server.jsotherwise, simply run the below npm command.
npm startBuild the application: build the application and run the production build.
npm run buildnpm run devPack the application: packs application into
appname-version.tgzfile.npm packAccess the application: Open your browser and navigate to http://localhost:3000
Note
- Create a
.envfile- Enter your port number, eg. PORT=3000
- Then, enter your mongodb url, eg. MONGODB_LOCAL_URL=mongodb://127.0.0.1:27017/your_database_name
- Here
db_namewould be varied, so kindly use the same db_name for the whole project.
Sample Code:
.envfile:PORT=3000 MONGODB_LOCAL_URL=mongodb://127.0.0.1:27017/quotes_db
Usage
Navigate to the home page to view all quotes.
Use the form to add a new quote.
Click "Edit" to modify an existing quote.
Click "Delete" to remove a quote.
Technologies Used
Bootstrap CSS
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!