You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2025. It is now read-only.
* Cleanup and add new client
* Add travis-ci, and cleanup server
* Update README file
* Add server side
* Add codecov to python in travis-ci
* Try add python coverage
* Fix coverage command on travis-ci
* Try fix path in travis-ci
* Install requirements in travis-ci
* Create postgres database in travis-ci
* Try coverage in xml
* Try coverage in html
* Create the coverage xml file after the report
* Add codecov config file
* Change pach to codecov config file
* Add test for users api
* Add pycodestyle to travis-ci
* Execute python unit tests in travis-ci
* Fix python coverage report
* Ignore apps.py files in coverage
The `server` directory contain a simple [Django](https://www.djangoproject.com/) app that expose an `api` of Django `users` with [Django REST framework](http://www.django-rest-framework.org/). The `client` directory contain an [Angular](https://angular.io/) simple app, built with [Angular-Cli](https://github.com/angular/angular-cli), [ngrx](https://github.com/ngrx) to handle state, [Angular Material](https://github.com/angular/material2) as a design library, have service worker, and ready to `AOT` compilation. The simple Angular app show the users from the Django api.
21
+
22
+
The repo is a production ready app, that uses `nginx` to serve static files (the client app and static files from the server), and `gunicorn` for the server (python) stuff. All the parts are in a separate [Docker](https://www.docker.com/) containers and we use [kubernetes](https://kubernetes.io/) to manage them.
23
+
24
+
## Pre Requirements
25
+
26
+
1. install [docker](https://www.docker.com/).
27
+
2. Don't know yet.
28
+
29
+
## Installation
30
+
31
+
Automatic installation of the project with docker, for development.
32
+
33
+
1. Run `$ docker-compose up` to build the docker images and run them.
34
+
3. Open the browser at [http://localhost:8000](http://localhost:8000) to see your Django (server) app.
35
+
3. Open the browser at [http://localhost:4200](http://localhost:4200) to see your Angular (client) app.
36
+
>>>>>>> b72a69f (Update dependencies (#20))
14
37
15
38
The `client` app is built via the cloud build CI on GCP and deployed to the GCP `storage`.
16
39
The `server` app is built via the cloud build CI as a docker image and deployed to a `GKE cluster` on GCP (managed by Kubernetes).
@@ -39,13 +62,20 @@ Create a Cloud DNS record:
39
62
40
63
## Our Stack
41
64
65
+
<<<<<<< HEAD
42
66
*[Angular](https://angular.io/)
43
67
*[Sanic](https://www.djangoproject.com/)
44
68
*[PostgreSQL](https://sanic.readthedocs.io)
69
+
=======
70
+
*[Angular 2.3](https://angular.io/)
71
+
*[Django 1.10.5](https://www.djangoproject.com/)
72
+
*[PostgreSQL](http://www.postgresql.org/)
73
+
>>>>>>> b72a69f (Update dependencies (#20))
45
74
*[Docker](https://www.docker.com/)
46
75
47
76
**Tools we use**
48
77
78
+
<<<<<<< HEAD
49
79
*[Angular Material](https://material.angular.io)
50
80
*[ngrx](https://github.com/ngrx)
51
81
*[Peewee](http://docs.peewee-orm.com)
@@ -106,12 +136,19 @@ Each Saturday morning a weekly backup will be created at the weekly directory. T
106
136
Each month at the 1st of the month a monthly backup will be created at the monthly directory. Monthly backups are **NOT** rotated
107
137
108
138
The backups are saved at `/var/backups/postgres` at the host machine via a shared volume. It can be configured in the `docker-compose.yml` at `volumes` section of the `database` service.
Copy file name to clipboardExpand all lines: client/README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,16 @@
1
1
# Client
2
2
3
+
<<<<<<< HEAD
3
4
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.7.
5
+
=======
6
+
The front end (client) side of the project written in Angular, with Angular-CLI, ngrx, and material2.
7
+
8
+
## Prerequisites
9
+
>>>>>>> b72a69f (Update dependencies (#20))
4
10
5
11
## Development server
6
12
13
+
<<<<<<< HEAD
7
14
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
8
15
9
16
## Code scaffolding
@@ -25,3 +32,21 @@ Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protrac
25
32
## Further help
26
33
27
34
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
35
+
=======
36
+
## Manual Installation
37
+
38
+
1. Run `npm install` to install dependencies
39
+
2. Run `npm start` to fire up the dev server
40
+
3. Open browser to [http://localhost:4200](http://localhost:4200)
41
+
42
+
## Tests
43
+
44
+
* Run `npm run lint` to check for TSLint mistakes
45
+
* Run `npm test` to execute the unit tests via Karma
46
+
* Run `npm run e2e` to execute the end-to-end tests via Protractor
47
+
48
+
## Deploy
49
+
50
+
1. Run `ng build -prod -aot` to build the project
51
+
2. Run `npm run sw` to generate the service worker file (in dist directory)
0 commit comments