Giter Club home page Giter Club logo

simple_loginapp's Introduction

#Simple Login App Codacy Badge

A simple login application in flask.

##Setup:

To get the project's source code, clone the github repository:

$ git clone https://github.com/satwik77/Simple_LoginApp.git

Install VirtualEnv using the following:

$ sudo pip install virtualenv

Create your virtual environment in the root directory of the project:

$ cd rumal
$ virtualenv flask

Install the following packages:

$ flask/bin/pip install flask
$ flask/bin/pip install flask-login
$ flask/bin/pip install flask-sqlalchemy
$ flask/bin/pip install sqlalchemy-migrate
$ flask/bin/pip install flask-wtf

Enter the following commands to create your database:

$ chmod a+x db_create.py
$ ./db_create.py

Enter the following command to for your first migration:

$ chmod a+x db_migrate.py
$ ./db_migrate.py

To run your server, enter the following commands:

$ chmod a+x run.py
$ ./run.py

The default port is 5000

To run unit tests, enter the following commands:

$ chmod a+x test_login_app.py
$ ./test_login_app.py

##Usage and Description

To get to the landing/index page, enter the url 'localhost:5000/' in your browser. Click on register button to register as a new user, then enter your new username or password. Entering an already existing username is not allowed and will respond with an error message. Once you register, you are logged in and redirected to the dashboard page. You will have to click on the logout button on the page to logout and register as a new user or login as an existing one. While you are logged in you cannot go to the login or index page, it will redirect you to the dashboard page.

simple_loginapp's People

Contributors

satwik77 avatar

Watchers

 avatar  avatar

Forkers

anshusharma06

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.