This is the Backend for the Blog App, built using GraphQL, Express, and TypeScript. The backend is designed to be scalable and maintainable with a robust infrastructure, integrating Apollo Server for GraphQL, and following best practices for DevOps (To be added).
- Apollo Server for GraphQL APIs.
- Express for handling REST APIs and general server routing.
- TypeScript for static type-checking and enhanced developer experience.
- Node.js v22+ with native support for ES Modules,
.env
files, and the--watch
feature for fast development. - Jest for unit and integration testing.
- Supertest for API testing.
- tsx for TypeScript execution in development.
- ts-node for runtime TypeScript support.
- Apollo Client (future integration) for interacting with GraphQL API.
- CI/CD (To be added) for automated deployments and tests.
- DevOps best practices (To be added) to ensure smooth deployment pipelines and environment management.
Follow these steps to set up and run the project locally.
git clone https://github.com/yourusername/blog-app-backend.git
cd blog-app-backend
Install the required dependencies using npm:
npm i
cp .env.example .env
npm run dev
This will start the server with TypeScript and native Node.js watch support (Node.js v22+), so the app will automatically reload on changes.
npm run build
npm start
To run the tests using Jest:
npm test
To remove build artifacts (like the dist/ folder):
npm run clean
There is lot to do more, feel free to contribute on this project 🚀