Skip to content

tatemsoft/create-graphql-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-graphql-api

npx create-graphql-api my-api
cd my-api
npm start

Templates

You can do the following for an auth template:

npx create-graphql-api my-api --auth

How to Deploy to Heroku

  1. Make sure you have Git setup
  2. Setup Heroku CLI: https://devcenter.heroku.com/articles/getting-started-with-nodejs#set-up
  3. Create a Procfile in the root folder of your project and put the following in it:
web: node dist/index.js
  1. In your package.json add the following script to run the TypeScript compiler before Heroku runs your project:
"heroku-postbuild": "tsc"
  1. In the root folder of your project, use the Heroku CLI to create a new project:
heroku create
  1. Add a PostgreSQL database addon
heroku addons:create heroku-postgresql
  1. Commit your code and push to Heroku
git push heroku master

Note: You'll want to look at your ormconfig.js and configure the options you want for production.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published