This is a small social media application built using Node.js, TypeScript, PostgreSQL, TypeORM, GraphQL Yoga, and other technologies. The application allows users to create posts, make comments, and interact with each other.
- Node.js: JavaScript runtime for server-side development.
- TypeScript: Superset of JavaScript with static typing.
- PostgreSQL: Open-source relational database management system.
- TypeORM: Object-Relational Mapping (ORM) library for TypeScript.
- GraphQL Yoga: Fully-featured GraphQL server library.
- Other Dependencies: Express, bcryptjs, jsonwebtoken, etc.
- Node.js and npm installed
- PostgreSQL database
-
Clone the repository:
git clone https://github.com/your-username/social-media-app.git
-
Install dependencies:
cd social-media-app npm install
-
Configure the database:
- Create a PostgreSQL database.
- Update database connection details in
src/index.ts
.
-
Run the application:
npm start
-
Visit
http://localhost:4000
in your browser to explore the GraphQL Playground.
src/models
: Contains TypeORM entity models (User, Post, Comment).src/resolvers
: GraphQL resolvers for handling queries and mutations.src/graphql
: GraphQL schema and resolvers.src/index.ts
: Entry point for the application.
This project is licensed under the MIT License.
- Thanks to the open-source community for providing the tools and libraries used in this project.