Password manager microservice is a simple cloud application developed alongside the Udacity Cloud Engineering Nanodegree. It allows users to create and store passwords, encrypted, using a password manager microservice.
The project is split into three parts:
- The Simple Frontend A basic React client web application which consumes the RestAPI Backend.
- The RestAPI Feed Backend, a Node-Express feed microservice.
- The RestAPI User Backend, a Node-Express user microservice.
tip: this frontend is designed to work with the RestAPI backends). It is recommended you stand up the backend first, test using Postman, and then the frontend should integrate.
This project depends on Nodejs and Node Package Manager (NPM). Before continuing, you must download and install Node (NPM is included) from https://nodejs.com/en/download.
This project uses NPM to manage software dependencies. NPM Relies on the package.json file located in the root of this repository. After cloning, open your terminal and run:
npm install
tip: npm i is shorthand for npm install
You'll need to create a new node server. Open a new terminal within the project directory and run:
- Initialize a new project:
npm init
- Install express:
npm i express --save
- Install typescript dependencies:
npm i ts-node-dev tslint typescript @types/bluebird @types/express @types/node --save-dev
- Look at the
package.json
file from the RestAPI repo and copy thescripts
block into the auto-generatedpackage.json
in this project. This will allow you to use shorthand commands likenpm run dev
Ionic uses enviornment files located in ./src/enviornments/enviornment.*.ts
to load configuration variables at runtime. By default environment.ts
is used for development and enviornment.prod.ts
is used for produciton. The apiHost
variable should be set to your server url either locally or in the cloud.
Ionic CLI can build the frontend into static HTML/CSS/JavaScript files. These files can be uploaded to a host to be consumed by users on the web. Build artifacts are located in ./www
. To build from source, open terminal and run:
ionic build