https://github.com/abdelrahman0122/crud-restfulapi
https://github.com/abdelrahman0122/crud-restfulapi
axios-react bootstrap docker-compose nodejs reactjs
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abdelrahman0122/crud-restfulapi
- Owner: Abdelrahman0122
- Created: 2023-05-13T19:57:47.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-15T12:07:06.000Z (about 3 years ago)
- Last Synced: 2025-01-14T01:41:30.789Z (over 1 year ago)
- Topics: axios-react, bootstrap, docker-compose, nodejs, reactjs
- Language: JavaScript
- Homepage:
- Size: 716 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CRUD-RestfulAPI
This is a full-stack web application built with Node.js, Express.js, React.js, and Docker.
## Prerequisites
Before you begin, make sure you have the following installed:
- Docker: https://docs.docker.com/get-docker/
## Technologies Used
The following technologies were used to build this project:
- Node.js
- Express.js
- React.js
- Docker
- axios
## How to Run the Application in a Docker Container
To run the application in a Docker container, follow these steps:
1. Clone the repository:
```
git clone https://github.com/Abdelrahman0122/CRUD-RestfulAPI
```
2. Navigate to the project directory:
```
cd CRUD-RestfulAPI
```
3.Build & Run the Docker compose:
```
docker-compose up
```
4. Open a web browser and navigate to
``` http://localhost:3000 ```
to access the application.
## Usage
This application allows you to perform CRUD operations on a list of users. You can:
- View a list of all users
- View a specific user by ID
- Create a new user
- Update an existing user
- Delete a user by ID
To use the application, follow these steps:
1. Open a web browser and navigate to `http://localhost:3000`.
2. All users appers one you add them.
3. To view a specific user, type his id in the url(recommendation use postman).
4. To create a new user, click on the "Submit" button and fill out the form.
5. To update an existing user, click on the "Edit" button next to the user's name and make changes to the form.
6. To delete a user, click on the "Delete" button next to the user's name.
## API Endpoints
The following API endpoints are available:
- `GET /Persons`: Get a list of all users.
- `GET /Persons/:id`: Get a specific user by ID.
- `POST /Persons`: Create a new user.
- `PUT /Persons/:id`: Update an existing user.
- `DELETE /Persons/:id`: Delete a user by ID.