Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.11 KB

README.md

File metadata and controls

23 lines (16 loc) · 1.11 KB

PXL 3 tier web application sample app

This repo contains 4 branches. The main branch has the app running on a mongoDB database. The branch dynamo-db uses AWS dynamoDB as a database. The branch sequelize has the app running on a MySQL database. The branch serverless contains some lambda functions that can be combined with an AWS API gateway to setup a serverless backend architecture in combination with DynamoDB.

frontend

Angular 12

API url

The API url is defined in the file /frontend/environments/environment.prod.ts. This value gets set by the APIURL argument in the docker-compose.yml file. The multistage dockerfile uses this value before the build process.

Backend

NodeJS + express + mongoose

there is a /health endpoint for a healthcheck

image carrousel urls are located in /backend/data/carrousel.json

Database

MongoDb

Setup

  • make sure the APIURL property in docker-compose.yml is correctly set to point to your API.
  • make sure the DBURL variable in docker-compose.yml is correctly set to point to your mongoDB instance.
  • run docker-compose build && docker-compose up to boot