@hexlabs/generator-hexlabs-api
v1.0.26
Published
Generate an API like HexLabs does
Downloads
1,136
Keywords
Readme
How to create a new Product in HexLabs
Create Domain
Create AWS Accounts and GCP Projects
npx @hexlabs/hexlabs-cli create
# Use SSO to login to the production account and get the NS records for the domain - add them to the DNS entries for the domain in the registrar
- Goto https://console.cloud.google.com/apis/credentials and select project per environment created in step 2. Setup OAuth2 Client with redirect urls matching the domain for the environment setup in the previous steps:
Example redirectUr: https://auth.dev.link-ni.co.uk/oauth2/idpresponse
- Create repository for <>-user-service and add secrets to actions for each environment
CLIENT_GOOGLE_ID_<<ENVIRONMENT>>
CLIENT_GOOGLE_SECRET_<<ENVIRONMENT>>
- Install Yeoman Generator and Hexlabs Generator
npm install -g yo @hexlabs/generator-hexlabs-api
- Create User service - (Cognito Userpool with triggers)
mkdir <<product-name>>-user-service && cd <<product-name>>-user-service
yo @hexlabs/hexlabs-api
select type User Service
push to github repo
once complete delete the A record pointing at 8.8.8.8
- Create Web app (Generates two projects: an edge stack and a react app)
yo @hexlabs/hexlabs-api
select type React UI
push edge to github
after deploy push ui to github
- Create Services
yo @hexlabs/hexlabs-api
select type General Service
push to github