Skip to content

a simple API with crud operations to mongo db collection

Notifications You must be signed in to change notification settings

Konstantin-Filipov/recipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recipe Management System

This project is a Recipe Management System that allows users to create, edit, view, and delete recipes. It consists of a frontend application built with HTML, CSS, and JavaScript, and a backend server built with Node.js and Express.js. The backend server interacts with a MongoDB database to store and retrieve recipe data.

Features

  • View a list of recipes
  • Create a new recipe
  • Edit an existing recipe
  • Delete a recipe

Installation & Setup

  1. Clone the repository:
git clone <repository-url>
cd recipe-management-system
  1. Install dependencies for the frontend and backend:
cd frontend
npm install
  1. Set up environment variables:

Create a .env file in the backend directory and add the following variables:

PORT=3000
MONGODB_URI=<your-mongodb-uri>

Replace with the URI of your MongoDB database.

  1. Start the frontend and backend servers:
# Start the frontend server
cd ../<directory of package.json>
npm run dev

Usage

Open your web browser and navigate to http://localhost:3000 to access the Recipe Management System.

You can perform the following actions:

  • View a list of recipes: The homepage displays a list of recipes with details such as title, ingredients, instructions, and cooking time.
  • Create a new recipe: Click the "Create Recipe" button to add a new recipe.
  • Edit an existing recipe: Click the "Edit" button next to a recipe to modify its details.
  • Delete a recipe: Click the "Delete" button next to a recipe to remove it from the system.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  • Fork the repository
  • Create a new branch (git checkout -b feature)
  • Make your changes
  • Commit your changes (git commit -am 'Add new feature')
  • Push to the branch (git push origin feature)
  • Create a new Pull Request

About

a simple API with crud operations to mongo db collection

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published