https://github.com/idowudamolaolatunji/frontend-developer-assessment
https://github.com/idowudamolaolatunji/frontend-developer-assessment
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/idowudamolaolatunji/frontend-developer-assessment
- Owner: idowudamolaolatunji
- Created: 2024-07-25T08:40:47.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-25T20:39:22.000Z (10 months ago)
- Last Synced: 2025-01-17T22:28:08.873Z (5 months ago)
- Language: JavaScript
- Homepage: https://frontend-developer-assessment-seven.vercel.app
- Size: 377 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Project Title: User Management API (Frontend developer assessment)
Description: A simple API for managing users, built using Axios for HTTP requests and Tailwind CSS for styling.
Features:
- Create new users with email, name, password, and role
- API endpoint to post user data
- Error handling for API requests
- Styling with Tailwind CSSAPI Endpoint:
- GET /users - Get all users
- POST /users - Create a new user
- GET /users/:id - Get a user by id
- PATCH /users/:id - Update a user
- Delete /users/:id - Delete a userRequest Body:
- email: string
- name: string
- password: string
- role: stringResponse:
- 201 Created - User created successfully
- 400 Bad Request - Invalid request dataError Handling:
- Catches and logs API request errors
- Handles server errors and logs error messagesTechnologies Used:
- Reactjs
- Axios for HTTP requests
- Tailwind CSS for stylingGetting Started:
1. Clone the repository: git clone
2. Install dependencies: npm install
3. Start the development server: npm start