This project is the development of a social media platform similar to Twitter, which is a database management system application. The application allows users to post tweets, like, comment, and follow other users.
- Backend: Flask, PostgreSQL
- Frontend: React
- Others: Git, Node.js
- HTML: Used to create the basic structure of the application. The
public/index.htmlfile contains the HTML that serves as the entry point for the application. - CSS: Used for styling and design. Various CSS files and style libraries (e.g., Bootstrap or Font Awesome) can be utilized to enhance the appearance of the application.
- JavaScript: Used to provide dynamic content and interactivity. The React library is used to build the user interface and interact with the API.
- React: A JavaScript library used to create the user interface. Its component-based architecture allows for a more modular and manageable application.
- The
public/index.htmlfile contains the basic HTML structure of the application. This file serves as the entry point when the React application is run. - The HTML file includes important components such as meta tags, favicon, style files, and JavaScript links.
- CSS files and style libraries can be used to enhance the appearance of the application. For example, links for Font Awesome icons have been included.
- React is used to build the user interface. The application is managed through components.
- Libraries such as Axios or Fetch API can be used for interaction with the API.
- Flask: A lightweight WSGI web application framework in Python. It is used to create the backend of the application.
- PostgreSQL: A powerful, open-source object-relational database system used to store application data.
- SQLAlchemy: An ORM (Object Relational Mapper) used for database interactions in a more Pythonic way.
- The backend provides various API endpoints for user registration, login, posting tweets, and more. These endpoints are defined in the
app.pyfile in the backend directory.
- The database schema includes tables for users, tweets, likes, comments, and followers. This structure allows for efficient data management and retrieval.
-
Backend Setup:
cd backendpip install -r requirements.txt(Install the required Python libraries)- Configure the database settings.
-
Frontend Setup:
cd frontend/twitter-frontendnpm install(Install the required Node.js packages)npm start(Start the application)
To run this application, create a .env file in the root directory with the following variables:
- You can use the relevant API endpoints for user registration, login, and posting tweets.
- The frontend application provides the user interface and interacts with the API.
- Zeki Akgül - Project Owner
This project is licensed under the MIT License.