2.71.0 ā€¢ Published 4 years ago

ipwa v2.71.0

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

Pipeline codecov This project is using Percy.io for visual regression testing. cypress

iPWA

šŸš€ Spin up an isomorphic progressive web app or native app deployable in the cloud, publishable as an npm package or docker container with a fully automated supercharged pipeline, all in under an hour, so you can focus on creating stuff!

How this works

This package was created with automated pipeline in mind. One codebase for web and native apps where when something gets merged to master, it gets to production. All you need to do is spin up a new project, set the tokens and secrets correctly and the rest is all magic. When you push code to master, it will just be deployed everywhere after a series of checks. What happens behind the scene is once you push code to Github, it triggers Github actions. If its the master branch, it runs a basic Sanity Check where it builds the client and server code base, runs lint and unittests and reports to Codecov. This sanity check is followed by staging in Heroku. The application is dockerized and deployed as a docker container on Heroku. Once done, regression tests are performed on this staging environment. Unit tests, Cypress tests, Puppeteer and Percy visual regression tests are performed on this environment. Once passed, the docker image is pushed to Dockerhub and Github Container Registry, deployed into Firebase and published to Expo as over-the-air update. To top it all, its published to npm as well.

Install

Install ipwa globally

npm i -g ipwa

Create a new ipwa app

ipwa my-app install

This will create a new project called my-app in the current directory and install npm dependencies.

Set these runtime env vars in ./.env/env.sh.

config_secrets__linkedin__clientId
config_secrets__linkedin__clientSecret
config_secrets__github__clientId
config_secrets__github__clientSecret
const config_secrets__sendInBlue__user
const config_secrets__sendInBlue__pass
config_secrets_jsdrome_encryptKey
config_props__gtmId

Set these build time env vars in ./.env/env.sh and in Github secrets

CODECOV_TOKEN
IMAGE_NAME
HEROKU_APP_NAME
HEROKU_API_KEY
CYPRESS_TOKEN
CYPRESS_PROJECT_ID
PERCY_TOKEN
FIREBASE_APP_NAME
FIREBASE_TOKEN
config_props__url

Change defaults in .configrc as necessary.

Development

Run app locally

npm run dev
npm run nodemon

Run app as docker container

Make appropriate changes to ./infra/docker/docker-compose.yml and ./infra/docker/Dockerfile.

npm run build:docker

Run unit tests

npm run test

Run cypress tests

npm run test:cypress

Run puppeteer tests

npm run test:puppeteer

ā­ļø Star us on GitHub ā€” it helps!

2.70.0

4 years ago

2.71.0

4 years ago

2.68.0

4 years ago

2.67.0

4 years ago

2.66.0

4 years ago

2.65.0

4 years ago

2.64.0

4 years ago

2.63.0

4 years ago

2.62.0

4 years ago

2.61.0

4 years ago

2.60.0

4 years ago

2.59.0

4 years ago

2.58.0

4 years ago

2.57.0

4 years ago

2.56.0

4 years ago

2.55.0

4 years ago

2.54.0

4 years ago

2.53.0

4 years ago

2.52.0

4 years ago

2.51.0

4 years ago

2.48.0

4 years ago

2.49.0

4 years ago

2.50.0

4 years ago

2.47.0

4 years ago

2.46.0

4 years ago

2.45.0

4 years ago

2.44.0

4 years ago

2.43.0

4 years ago

2.42.0

4 years ago

2.41.0

4 years ago

2.39.0

4 years ago

2.38.0

4 years ago

2.37.0

4 years ago

2.40.0

4 years ago

2.36.0

4 years ago

2.35.0

4 years ago

2.34.0

4 years ago

2.33.0

4 years ago

2.32.0

4 years ago

2.31.0

4 years ago

2.29.0

4 years ago

2.30.0

4 years ago

2.28.0

4 years ago

2.27.0

4 years ago

2.26.0

4 years ago

2.25.0

4 years ago

2.24.0

4 years ago

2.23.0

4 years ago

2.22.0

4 years ago

2.21.0

4 years ago

2.20.0

4 years ago

2.19.0

4 years ago

2.18.0

4 years ago

2.17.0

4 years ago

2.16.0

4 years ago

2.15.0

4 years ago

2.13.0

4 years ago

2.14.0

4 years ago

2.11.0

4 years ago

2.12.0

4 years ago

2.10.0

4 years ago

2.9.0

4 years ago

2.8.0

4 years ago

2.7.0

4 years ago

2.6.0

4 years ago

2.5.0

4 years ago

2.4.0

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

1.1.0

4 years ago