Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

vqw/Angular-Django-cluster

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An opinionated Angular - Django RESTful cluster

license Build Status codecov Dependency Status Donate

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.

Pre Requirements

  1. install docker.
  2. Don't know yet.

Installation

Automatic installation of the project with docker, for development.

  1. In client directory run docker build -t client . to build the Docker image.
  2. Run docker run -dit -v `pwd`:/usr/src -p 4200:4200 --name=client-con client to run a container from that image.
  3. Open the browser at http://localhost:4200 to see your Angular (client) app.
  4. In server directory run docker build -t server . to build the Docker image.
  5. Run docker run -dit -v `pwd`:/usr/src -p 8000:8000 --name=server-con server to run a container from that image.
  6. 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.

Our Stack

Tools we use

Contribute

Just fork and do a pull request (;

About

An opinionated Angular - Django RESTful cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 62.5%
  • Python 23.6%
  • JavaScript 7.0%
  • CSS 4.1%
  • HTML 2.8%