-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📰 Updating project documentation (#79)
* update backend readme * windows casing delete first * windows casing add * windows casing delete first * windows casing add * windows casing delete first * windows casing add * windows casing delete first * windows casing add * lint * update npm jackage info only seen privately in artifactory * revamp branding * detailing usage of lockfiles * fixup changelong typos * create infra readme * Update readme.md * Update upload.yml
- Loading branch information
1 parent
4d4cdd1
commit ee02264
Showing
10 changed files
with
209 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# User Management Deployment | ||
|
||
## Setup | ||
|
||
### Pulumi Configuration | ||
|
||
Select the target stack | ||
|
||
```sh | ||
pulumi stack select dev | ||
``` | ||
### Dependencies | ||
Install dependencies | ||
```sh | ||
npm install | ||
``` | ||
## Development | ||
Preview deployment | ||
```sh | ||
pulumi preview | ||
``` | ||
### Updating dependencies | ||
```sh | ||
npm update | ||
``` | ||
## Usage | ||
Deploy | ||
```sh | ||
pulumi up | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# User Management Back-end | ||
|
||
## Setup | ||
|
||
### Conan Configuration | ||
|
||
> :warning: This **must** be done before any usage! | ||
If that is not possible, you will need to clear your conan cache. This can be done using `conan remove -f '*'` | ||
|
||
Enable recipe revisions | ||
|
||
```sh | ||
conan config set general.revisions_enabled=1 | ||
``` | ||
|
||
#### Targeting different `C` library implementations | ||
|
||
The Conan default `settings.yml` does not take these into account. The settings model can be extended by doing the following: | ||
|
||
1. install an extended settings model | ||
|
||
```sh | ||
conan config install .conan/settings.yml | ||
``` | ||
|
||
2. configure your profile (or build settings) | ||
|
||
```sh | ||
conan profile update settings.compiler.musl=1.2 default | ||
# or | ||
conan profile update settings.compiler.glibc=2.32 default | ||
``` | ||
|
||
## Development | ||
|
||
Generate build files via CMake | ||
|
||
```sh | ||
mkdir build | ||
cmake .. | ||
``` | ||
|
||
Build the project | ||
|
||
```sh | ||
cmake --build . # from the build folder | ||
``` | ||
|
||
Enable building tests | ||
|
||
```sh | ||
cmake .. -DBUILD_TESTS=ON | ||
``` | ||
|
||
Enable building tests | ||
|
||
```sh | ||
cmake .. -DRUN_TIDY=ON | ||
``` | ||
|
||
### Updating dependencies | ||
|
||
To update the top level `conan.lock` run: | ||
|
||
```sh | ||
conan lock create conanfile.py --version=1.0.0-dev.0 --base --update | ||
``` | ||
|
||
```sh | ||
cd build && conan install .. -s build_type=Debug --lockfile=../conan.lock | ||
``` | ||
|
||
*Note*: You will need to change the "build type" to match your intentions | ||
|
||
## Usage | ||
|
||
### Lock Dependency graph | ||
|
||
```sh | ||
conan lock create conanfile.py --version 1.0.0-dev.0+`git rev-parse --short HEAD` --lockfile=conan.lock --lockfile-out=locks/conan.lock | ||
``` | ||
|
||
### Package Back-end | ||
|
||
```sh | ||
conan create conanfile.py 1.0.0-dev.0+`git rev-parse --short HEAD`@ --lockfile locks/conan.lock | ||
``` | ||
|
||
### Install Application | ||
|
||
> :notebook: This step requires the [packing](#package) to be completed first | ||
```sh | ||
conan install user-managment/1.0.0-dev.0+`git rev-parse --short HEAD` --lockfile locks/conan.lock | ||
``` | ||
|
||
### Build Docker Image | ||
|
||
```sh | ||
docker build . -f Dockerfile -t user-managment-backend:1.0.0-dev.0 # Docker does not support SemVer build information | ||
``` | ||
|
||
## Run Container | ||
|
||
```sh | ||
docker run --rm -d -p 8443:8443 -v "$(pwd):/dist" user-managment-backend:1.0.0-dev.0 | ||
``` | ||
|
||
> :notebook: By default the back-end image is setup for HTTPS for unsecure transport use the following | ||
```sh | ||
docker run --rm -d -p 8080:8080 -v "$(pwd):/dist" user-managment-backend:1.0.0-dev.0 dist -a "0.0.0.0" -p 8080 -n 4 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# User Management [![Docs](https://img.shields.io/badge/API%20Documentation-master-blue)](https://prince-chrismc.github.io/user-management/) | ||
|
||
An open-source application delivering a responsive user management experience. | ||
|
||
<p align="center"> | ||
<img src="https://raw.githubusercontent.com/prince-chrismc/user-management/master/docs/Screencast-2020-07-18-230754.gif"> | ||
</p> | ||
|
||
## :microscope: Technical Overview | ||
|
||
This repository contains a distributed cloud native application comprised of two compents: | ||
|
||
* [Front-end](web-app/) - Primary point of interaction with users. It is a [React](https://reactjs.org/) client side application build using [webpack](https://webpack.js.org) for _fast_ surfing. | ||
* [Back-end](backend/) - Centralized data store containing the information of all known users. Written in [C++](https://isocpp.org/) for flexibility and scalability it leverages many Open-Source technologies [listed here](backend/conan.lock). | ||
|
||
## :rocket: Cloud Deployments | ||
|
||
> :information_source: The goal for this project is to span multiple public :cloud: clouds, some information may be out of date. | ||
| Component | Status | Link | ||
| --- | --- | --- | | ||
| Back-end | ![staging is online][staging-online] | [AWS ECS Fargate][be] | ||
| Front-end | ![staging is online][staging-online] | [AWS ECS Fargate][fe] | ||
| Unified (deprecated) | ![production is stable][prod-stable] | [AWS EC2][u] | | ||
|
||
[staging-online]: https://img.shields.io/badge/Staging-online-blue | ||
[prod-stable]: https://img.shields.io/badge/Production-stable-brightgreen | ||
|
||
[be]: http://backend-b54ef0d-1b76226fd6250e07.elb.us-east-2.amazonaws.com:8080 | ||
[fe]: http://frontend-aec25d0-96d61837c91fead3.elb.us-east-2.amazonaws.com | ||
[u]: https://ec2-18-222-250-141.us-east-2.compute.amazonaws.com | ||
|
||
## :man_scientist: Development Summary | ||
|
||
| Component | Build | Coverage | | ||
| --- | --- | --- | | ||
| Back-end | [![C++ CI](https://github.com/prince-chrismc/user-management/workflows/C++%20CI/badge.svg)](https://github.com/prince-chrismc/user-management/actions?query=workflow%3A%22C%2B%2B+CI%22)| [![Coverage Status](https://coveralls.io/repos/github/prince-chrismc/user-management/badge.svg?branch=master)](https://coveralls.io/github/prince-chrismc/user-management?branch=master) | | ||
| Front-end | [![Node.js CI](https://github.com/prince-chrismc/user-management/workflows/Node.js%20CI/badge.svg)](https://github.com/prince-chrismc/user-management/actions?query=workflow%3A%22Node.js+CI%22) | [![codecov](https://img.shields.io/codecov/c/github/prince-chrismc/user-management)](https://codecov.io/gh/prince-chrismc/user-management) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ee02264
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 automatically deployed to http://frontend-aec25d0-96d61837c91fead3.elb.us-east-2.amazonaws.com
ee02264
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 automatically deployed to http://frontend-aec25d0-96d61837c91fead3.elb.us-east-2.amazonaws.com