This is base kit for the projects base on Angular as a frontend and Django as a backend.
- Install virtulenv (https://pypi.python.org/pypi/virtualenv)
- Clone the project git clone [email protected]:kurund/django-angular-starterkit.git
- cd django-angular-starterkit
a. Create and activate virtualenv
virtualenv -p python3 env source env/bin/activate
b. Install required packages
pip install -r backend/requirements.txt
c. Setup
cd backend copy settings.py.txt to settings.py and update the db credentials
Note: I am using SQLLite for this starterkit
d. Setup database
python manage.py migrate
e. Run the server
python manage.py runserver
f. Check if application is running correctly
g. Create superuser for the admin backend
python manage.py createsuperuser
h. Login as superuser
a. Install latest version of nodejs: https://nodejs.org/en/ b. Install Angular CLI: https://cli.angular.io/ c. Setup
cd webapp npm install
d. Run the project in development mode
ng serve
Django application
backend folder
Angular application
webapp folder
TBD