Skip to content

Bootstrap code to get started with an Angular frontend and Django REST backend

Notifications You must be signed in to change notification settings

arunsworld/webapp-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Bootstrap code to get started with an Angular frontend and Django REST backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published