Skip to content

In this repo I have integrate Stack overflow api with angular JS and Angular 6

Notifications You must be signed in to change notification settings

rajat4665/Stackoverflow-API-with-angularjs

Repository files navigation

About

This is example code for integrating Stack overFlow api with Django and Django rest framework using cache and throtling.

Read more about Stack overflow APi here: Stack APi offical docs
Read more about Django rest framework: DRF offical docs
Read more about Angular js : Learn Angularjs from w3school


What you will learn from this repository

  • Stack Api integration
  • Cache managemnt using Redis
  • Custom Throtling like 5 hits per minuter or 100 hits per day
  • Integrate Angulrjs as frontend with Django template.
  • Angular 6 integration with CORS

Special Guide for angular 6 setup

I have just upploaded angular 6 src not all app. So you have to setup angular 2+

  • Install angular using cli
  • npm install -g @angular/cli
  • Create angular app by the following cli cmd
  • ng new my-app
  • Now copy src folder from this dir 'Stackoverflow-API-with-angularjs/angular_6_src/' replace it with src present in my-app dir
  • Now run the angular server
  • ng serve --open

How to run this app:

  • clone this repository
  • Install requirement file
  • open directory where manage.py file is present
  • open terminal type the following command
    pip3 install -r requirement.txt
    python3 manage.py runserver

About

In this repo I have integrate Stack overflow api with angular JS and Angular 6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published