Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 2.06 KB

README.md

File metadata and controls

63 lines (48 loc) · 2.06 KB

A bootstrap package to get started with building WebApps.

  • frontend - has code for Angular based apps
  • backend - has code for Django based REST webservices

Dependencies

  • arunsworld/angular:latest Docker image (optional)
  • arunsworld/django-apache:Anaconda3-5.3.0 Docker image (docker pull arunsworld/django-apache:Anaconda3-5.3.0)

How to use

docker run --rm -it -v $PWD:/app arunsworld/angular:latest

cd /app/frontend
npm install
  • Perform Angular build to create the frontend binary (optional)
ng build --prod
  • Create backend DB
docker run --rm -i -d -v $PWD:/app --name backend arunsworld/django-apache:Anaconda3-5.3.0
docker exec -it backend bash

cd /app/backend
python manage.py migrate; python manage.py createsuperuser; python manage.py collectstatic;

stop
  • Start apache and start serving content
cd scripts
./start_container.sh

How to customize

  • Modify package name in frontend/package.json. Change ab-bootstrap.
  • Modify project name in frontend/angular.json. Change ab-bootstrap.
  • Modify app title in frontend/src/index.html.
  • Modify scripts/000-default.conf to change the folder name from ab-bootstrap to your project name.

Testing the API

Extending the REST API