1.0.2 • Published 3 years ago
typescript-graphql-mongodb-starter v1.0.2
Typescript-GraphQL-MongoDB-MikroORM Starter
A starter project for building GraphQL APIs with Node.js, Typescript, MongoDB, and MikroORM. It provides a basic folder structure and starter files to help you get started with your own GraphQL API quickly and easily.
Features
- Typescript for type safety
- GraphQL for building APIs
- MongoDB for data storage
- MikroORM for ORM
- GraphQL Playground for testing the API
Getting Started
Prerequisites
- Node.js (v14 or later)
- MongoDB
Installation
- Clone the repository:
git clone https://github.com/MunavvarSinan/Typescript-GraphQL-MongoDB-MikroORM-Starter.git - Install dependencies:
npm install
Running the Application
- Start the server: npm start
- Open GraphQL Playground at http://localhost:4000/graphql
Testing
- Run tests: npm test
Folder Structure
srcfolder contains the source codeentitiesfolder contains MikroORM entitiesresolversfolder contains GraphQL resolversutilsfolder contains utility functionsindex.tsfile contains the main application entry point
- tests folder contains the unit tests
License
This project is licensed under the MIT License - see the LICENSE file for details.