Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kmturley/appengine-datastore-nest-angular
Example full-stack Typescript project using Google AppEngine and Datastore
https://github.com/kmturley/appengine-datastore-nest-angular
Last synced: 1 day ago
JSON representation
Example full-stack Typescript project using Google AppEngine and Datastore
- Host: GitHub
- URL: https://github.com/kmturley/appengine-datastore-nest-angular
- Owner: kmturley
- Created: 2019-02-13T02:40:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T18:29:42.000Z (over 3 years ago)
- Last Synced: 2024-05-02T00:59:42.948Z (7 months ago)
- Language: TypeScript
- Homepage: https://angular-nest-datastore.appspot.com
- Size: 479 KB
- Stars: 11
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# appengine-datastore-nest-angular
Example full-stack Typescript project using:
* AppEngine Standard
* Google Datastore 3.1.x
* NodeJS 10.x
* NestJS 5.6.x
* Angular Universal 7.1.x
* Docker 18.x
* Googe OAuth2## Auth Setup
Create a Google Cloud project, and enable the Google+ API at:
https://console.cloud.google.com/apis/library/plus.googleapis.com
Then create some credentials and save to a file at /backend/credentials.json:
APIs & Services > Create credentials > OAuth client ID > Other > Enter name > Download JSON
Then generate a JWT token using:
cd backend
npm run generate-tokenSave in the following format at /backend/jwt.json
{
"secret_key": "X"
}## Installation
Install dependencies and build images using:
docker-compose build
## Usage
Run the backend and frontend together using:
docker-compose up
View the Nest backend at:
http://localhost:8080/
View the Angular frontend at:
http://localhost:4200/
## Automatic Deployment
Go to Google Cloud Build:
https://console.cloud.google.com/cloud-build/triggers
Click 'Add Trigger' and name it 'Backend'. Then set Cloud Build configuration file location:
/backend/cloudbuild.yaml
Click 'Add Trigger' and name it 'Frontend'. Then set Cloud Build configuration file location:
/frontend/cloudbuild.yaml
## Manual Deployment
Deploy backend service:
cd backend
gcloud init
npm install
npm run build
npm run deployDeploy frontend service:
cd frontend
gcloud init
npm install
npm run build:prerender
npm run deploy## Directory structure
/backend --> Backend source files
/frontend --> Frontend sources files## Contact
For more information please contact kmturley