The server
directory contain a simple Django app that expose an api
of Django users
with Django REST framework. The client
directory contain an Angular simple app, built with Angular-Cli, ngrx to handle state, Angular Material as a design library, have service worker, and ready to AOT
compilation. The simple Angular app show the users from the Django api.
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 containers and we use kubernetes to manage them.
- install docker.
- Don't know yet.
Automatic installation of the project with docker, for development.
- In
client
directory rundocker build -t client .
to build the Docker image. - Run
docker run -dit -v `pwd`:/usr/src -p 4200:4200 --name=client-con client
to run a container from that image. - Open the browser at http://localhost:4200 to see your Angular (client) app.
- In
server
directory rundocker build -t server .
to build the Docker image. - Run
docker run -dit -v `pwd`:/usr/src -p 8000:8000 --name=server-con server
to run a container from that image. - Open the browser at http://localhost:8000 to see your Django (server) app.
If you want to install the project manually, go to the /client
or /server
directories and read the README
file.
Tools we use
Just fork and do a pull request (;