/News-Articles-Django-Backend

A news articles website backend with Django and APIs with Django Rest Framework.

Primary LanguageJavaScript

###Articles Website Exercise

- Used Django to define and create models.
- Filled in Dummy Data via /admin.
- Used/Configured Django REST Framework to expose out APIs.
- Frontend 2 page website using AngularJS.

Second Part
- Implemented front-end using meteor.
- Site search implemented.

#####Back-end

  1. Download or fork the repo, into a new 'clean' local directory.

  2. $virtualenv env

  3. $source env/bin/activate

  4. pip install -r requirements.txt

  5. cd articles

  6. python manage.py runserver 5000 (note: grunt launches at 8000)

  7. navigate to: http://127.0.0.1:5000/

  8. username/password : admin/admin

#####Front-end - AngularJS

  1. navigate to 'frontend' folder

  2. npm install

  3. bower install

  4. Once both the above is done, just run:

  5. grunt

  6. Should auto-launch your browser at http://localhost:5000/

#####Front-end - Meteor

  1. Navigate to 'meteor-articles' folder

  2. meteor

  3. This will start the server, navigate to: http://localhost:3000/