Skip to content

vikrantchaudharyy/profile_rest_api

Repository files navigation

In Project:

  • Create, update, delete & manage user profiles_api
  • Authenticate with username and password
  • Manage user profile feed items
  • creating a working local development runserver
  • using django models to create a database
  • enable and use Django admin
  • Use Django dev server to run & test code
  • Deploy app on aws (not done, only scripts)

Profiles Rest API

Profile Rest API training course
ModeHeader chrome extension for HTTP Requests : https://bewisse.com/modheader/help/
From Tutorial : https://github.com/LondonAppDev
License: https://choosealicense.com/licenses/mit/
gitignore: https://www.gitignore.io/api/django,vagrant
c1-ami-image (for aws): https://gist.github.com/LondonAppDev/d195610d79c9cca1769b6b5fece09067 <br / >

Initilize vagrant

vagrant init ubuntu/bionic64
vagrant up

Virtual Environment creation

python -m {ENV_NAME} {PATH_WHERE_TO_CREATE_VIRTUAL_ENV}
python -m venv ~/evn/
source ~/env/bin/activate deactivate

Creating Django Project

django-admin.py startproject profiles_project .
python manage.py startapp profiles_api

start Project

  • vagrant up
  • vagrant ssh
  • go to vagrant directory : cd /vagrant/
  • activate virtual environement : source ~/env/bin/deactivate
  • make migration file : python manage.py makemigrations
  • apply changes to database : python manage.py migrate
  • python manage.py runserver 0.0.0.0:8000

Run script on GIT directly from terminal

About

Source code for Profile rest API training course

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published