TwitterServer is a simple server built with Apollo Server and Express.
These instructions will help you get a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, make sure you have the following installed on your machine:
- Node.js
- Yarn (optional, you can also use npm)
-
Clone the repository:
git clone https://github.com/your-username/TwitterServer.git
-
Install dependencies:
yarn install
or
npm install
-
prisma migration
npx prisma migrate dev --name any_name_you_like
You can start the development server with the following command:
yarn dev
This will start the server on port 8000.
- Description:
- This repository serves as the backend infrastructure for our Twitter application.
- Tech Stack:
- Node.js, GraphQL, and Prisma ORM are used for backend development.
- Node.js hosts the GraphQL server, offering flexibility and efficiency in defining and querying the data model.
- Prisma ORM provides a type-safe interface for seamless interaction with the PostgreSQL database.
- PostgreSQL database is hosted and managed on Supabase for scalability and reliability.
- Redis is employed for query caching, enhancing query speeds and server-side performance.
- User authentication is implemented using Google OAuth and JSON Web Tokens for secure access.
- AWS offers storage, deployment, and CDN functionalities, bolstering the robustness and scalability of the backend infrastructure.