Social media app with GraphQL API
This project is a full-stack social media application with a NestJS GraphQL backend and a React Native mobile frontend.
This social media app allows users to create accounts, make posts, comment on posts, and like content. It features a GraphQL API backend built with NestJS and MongoDB, and a mobile frontend developed using React Native.
- NestJS
- GraphQL
- MongoDB
- Redis (for caching)
- Apollo Server
- Clone the repository: git clone https://github.com/your-username/your-repo-name.git cd your-repo-name/server
- Install dependencies: npm install
- Set up environment variables:
Create a
.env
file in the server directory and add the following: MONGODB_URI=your_mongodb_connection_string REDIS_HOST=your_redis_host REDIS_PORT=your_redis_port
To start the server in development mode: npm run start:dev
The server will be running at http://localhost:3000/graphql
.
The GraphQL API includes the following main types:
- User
- Post
- Comment
For detailed API documentation, visit the GraphQL Playground at http://localhost:3000/graphql
when the server is running.
- React Native
- Apollo Client
- React Navigation
- Navigate to the client directory: cd GraphQL-social-media-app/client
- Install dependencies: npm install
To start the React Native development server: npm run start
- User authentication (register, login)
- Create, read, update, and delete posts
- Comment on posts
- Like/unlike posts
- User profiles
- Real-time updates (optional, if implemented)
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.