Coder Social home page Coder Social logo

nasserzon's Introduction

NasserZon

This project is part of Udacity Full-stack nanodgree.


This repo contaian 2 python files and html taemblets folder.

I used Bootstrap, jquery, Google authentaction, bycrypt libarary for hashing,smtplib and MIMEText to create and send emails(for resetpassword) and validate_email libarary for validating emails :) , I did uae session mangment and reset password to make my app more relastic (I got carried out lol).

To use google login you need to create app on google api devloper console to get app clientid.

You Don't need to do the step above becuses NasserZon has registration and login :).

To use reset password functionality you must provide your email and password on myproject.py line 199 and 200 (gmail account) or change stmp configuration.

This project has 2 json api endpoints:

  1. All products based on category uri like localhost:8000/api/get/products/smartphone or /api/get/products/ to get all products/
  2. One product based on product id like localhost:8000/api/get/product/1, you can get the product id from the api above.

To try this code You need to:

  1. Install Vagrant and VirtualBox
  2. Clone the fullstack-nanodegree-vm
  3. Run vagrant up
  4. Run vagrant ssh to login to your VM.
  5. cd/ vagrant to acsees the shared files.
  6. move The downladed files to vagrant shared files
  7. Run python storedb_setup.py to create the db with required tables and python fillDbdata.py to fill dummy data.
  8. Install external libraries (bcrypt and validate_email) by ruining these commands ('pip install validate_email' and 'pip install bcrypt' ) if you get an error from your VM saying that you don't have accesses run the same commands with '--user' in the end of the command(I run to this problem and adding --user in the end fixed it).
  9. Create new App in https://console.cloud.google.com and make the Authorized JavaScript origins : localhost:8000 and the Authorized redirect URIs : localhost:8000/login and localhost:8000/
  10. downlad Client ID for Web application as json on the root dirctory of vagrant and rename it to client_secrets.json
  11. run python myproject.py and start to play(you need to create an acount to add delete and edit)
  12. type localhost:8000 on your browser to see the webapp.

You can find the link to the fullstack-nanodegree-vm from https://github.com/udacity/fullstack-nanodegree-vm.


References:

nasserzon's People

Contributors

nasserfj58 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.