Angular & Node fullstack Single Page Application with Relational databases as backend using Sequelize. Live Demo:
TypeScript JavaScript CSS HTML SQLPL
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
__mocks__
e2e
server
src
.dockerignore
.editorconfig
.gitignore
.sequelizerc
Dockerfile
Procfile
README.md
angular.json
docker-compose.debug.yml
docker-compose.yml
ngsw-config.json
nodemon.json
package-lock.json
package.json
protractor.conf.js
proxy.conf.js
server.js
tsconfig.json
tslint.json
web.config
yarn.lock

README.md

Node and Angular fullstack Single Page Application with Relational databases as backend

Start dev

Without SSR

  • npm run dev OR yarn dev

With SSR

  1. Build client and server in watch mode
    • npm run build:ssr OR yarn build:ssr
  2. Serve with SSR
    • npm run serve:ssr OR yarn serve:ssr

Start prod

Without SSR

  1. Build client and server
    • npm run build:prod OR yarn build:prod
  2. Serve without SSR
    • npm run serve:prod OR yarn serve:prod

With SSR

  1. Build client and server
    • npm run build:prod OR yarn build:prod
  2. Serve with SSR
    • npm run serve:prod:ssr OR yarn serve:prod:ssr

Unit tests using Jest.

Run test

  • npm test OR yarn test

End-to-end tests using Testcafe.

  1. Start application
    • npm run deve2e OR yarn deve2e
  2. Run live e2e tests
    • npm run e2e OR yarn e2e

Deploy using Circle CI

  1. intall heroku cli from https://devcenter.heroku.com/articles/heroku-cli
  2. From heroku account settings (https://dashboard.heroku.com/account) page copy API key
  3. Paste this key in circle CI Account Settings > Heroku API Key section
  4. Circle CI > Project > Projectname > Settings > Continuous deployment > Heroku Deployment > Step 2: Associate a Heroku SSH key with your account
  5. Setup local repository with heroku: login to heroku: heroku git:remote -a ngnode-fullstack If you get error described here: https://discuss.circleci.com/t/heroku-deployment-from-circle-ci-failing/11117/2 do force git push git push heroku master -f
  6. Start deployment