This is a Recipe Application built using React.js and json-server as a fake API. The application allows users to view, add, update, and delete recipes.
Before you begin, ensure you have the following installed:
- Node.js
- npm (Node Package Manager)
- json-server (for simulating an API server with data)
- Clone the repository:
git clone https://github.com/mibanas/MyRecipe.git
- Navigate to the project directory:
cd MyRecipe
- Install project dependencies.
npm install
- Install JSON Server
npm install -g json-server
-
Create a folder & file like this in : src/Data/db.json file
-
Add server to scripts in package.json
"scripts": {
...
"server": "json-server --watch db.json --port 5000"}
- Start the server
npm run server
- Launch the React application.
npm start
The application will be accessible at http://localhost:3000/. & the server will be running at http://localhost:5000
List of project dependencies:
- @fortawesome/fontawesome-svg-core
- @fortawesome/free-brands-svg-icons
- @fortawesome/free-solid-svg-icons
- @fortawesome/react-fontawesome
- axios
- json-server
- react
- react-dom
- react-icons
- react-router-dom
- sweetalert2
- sweetalert2-react-content
- web-vitals
Dev Dependencies: List of development dependencies:
- tailwindcss
- vite
- webpack
- webpack-cli
- React.js Documentation: https://react.dev/
- json-server Documentation: https://github.com/typicode/json-server
If you would like to contribute to this project, please follow the Contribution Guidelines.
If you find issues or want to contribute, follow these steps:
- Fork the project.
- Create a branch for your feature:
git checkout -b feature/NewFeature
. - Commit your changes:
git commit -m "Add New Feature"
. - Push to the branch:
git push origin feature/NewFeature
. - Open a pull request.
This project is licensed under the MIT License.
Feel free to customize this template according to your project's specific details and structure.