____ _ _ _ / ___|_ __ __ _ _ __ | |__ ___ ___ _ __(_)_ __ | |_ | | _| '__/ _` | '_ \| '_ \/ __|/ __| '__| | '_ \| __| | |_| | | | (_| | |_) | | | \__ | (__| | | | |_) | |_ \____|_| \__,_| .__/|_| |_|___/\___|_| |_| .__/ \__| |_| |_|
A simple GraphQL boilerplate using TypeScript and TypeORM
Graphscript is a simple boilerplate using the most recents technologies of Javascript, made with TypeScript. Creating a layer of service that possibility the management of Middlewares and Schemas.
- Clone this repo using:
https://github.com/kevenleone/graphscript.git
- Install the packages using your preference package manager ( yarn install or npm install )
- Rename the files
- ormconfig.example.json to ormconfig.json
- .env.example to .env
- Inside ormconfig.json configure with your preferences, the database, you can check the TypeORM Docs and select the best database option. https://typeorm.io/#/
- Run ( yarn dev or npm run dev ) and open on browser: http://localhost:3333/graphql
Graphscript implement the following features
- ⚡ Apollo GraphQL - A GraphQL Server for Express Library
- 📚 TypeORM - ORM for TypeScript and JavaScript
- 🐳 Docker - To setup all the environment needs, ready to deploy
- 📋 Winston - A logger for just about everything.
- 🛂 JWT - For protection of GraphQL Content
npm run dev
- start the playground with hot-reload athttp://localhost:3333/playground
npm start
- start the playground pointing for dist index athttp://localhost:3333/playground
npm run build
- Builds the project: Typescript to Javascript
If you liked the project and want to cooperate feel free to fork this repository and send Pull Requests.
All kinds of contributions are very welcome and appreciated
- ⭐️ Star the project
- 🐛 Find and report issues
- 📥 Submit PRs to help solve issues or add features
This project comes with a app.json
file for heroku, that can be used to create an app on heroku from a GitHub repository.
After setting up the project, you can init a repository and push it on GitHub. If your repository is public, you can use the following button:
If you are in a private repository, access the following link replacing $YOUR_REPOSITORY_LINK$
with your repository link.
https://heroku.com/deploy?template=$YOUR_REPOSITORY_LINK$
MIT license, Copyright (c) 2020 Keven Leone.