Skip to content

Felleria/Group-1-Twitter-tweet

Repository files navigation

Twitter Tweet

Live Demo

Screencast.from.09-05-2024.02.04.33.ASUBUHI.webm

Description

  • The Twitter project is a React app that allows users to create and manage tweets. Users can add new tweets, which display with a user's name or as anonymous. It supports CRUD operations and uses React hooks and the Fetch API to fetch, create, update, and delete tweets. The app also features basic styling for an enhanced user experience.

Objectives

  • Create Tweets: Enable users to create tweets and display them as either from a specified user or as anonymous.
  • Manage Tweets: Allow users to read, delete, and potentially update tweets using CRUD operations.
  • Fetch Data: Use the Fetch API to retrieve tweet data from a server or mock API.
  • React Hooks: Utilize React hooks such as useState and useEffect for state management and lifecycle handling.
  • User Experience: Provide a simple, user-friendly interface with basic styling.

Installation Requirements

  • Git
  • Node.js and npm: Make sure you have Node.js and npm installed. These are necessary for running the project and managing dependencies.
  • json-server: Install json-server to serve db.json as a REST API. This tool helps you create a full-fledged JSON-based REST API server locally:

Installation instruction

Git clone https://github.com/Felleria/Group-1-Twitter-tweet.git

npm install -g json-server

json-server --watch db.json --port 3001

npm start

Technologies used

  • HTML - json-server
  • Github - React-hooks
  • Javascript
  • React
  • CSS

License

MIT License

Copyright (c) 2024 Felleria

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.