Skip to content

A lightweight web application built to demonstrate cloud-based development practices. It provides a platform for users to perform various tasks, including user management and authentication.

License

Notifications You must be signed in to change notification settings

DeathOrg/CloudNative-Authenticator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebApp

WebApp is a simple web application designed for cloud environments.

For additional infrastructure resources related to this project, refer to the following repositories:

  1. tf-gcp-infra - Infrastructure setup for Google Cloud Platform.
  2. serverless - Repository for serverless architecture.

Introduction

WebApp is a lightweight web application built to demonstrate cloud-based development practices. It provides a platform for users to perform various tasks, including user management and authentication.

Features

  • User Management: Create, update user profiles.
  • Authentication: Secure authentication using token-based basic authentication.
  • Password Hashing: User passwords are securely hashed using the BCrypt algorithm.
  • User Information Retrieval: Retrieve user account information.
  • API Endpoints: Provides endpoints for creating, updating, and retrieving user accounts.

Installation

To install and set up the WebApp locally, follow these steps:

  1. Clone the repository:

    git clone [email protected]:Sourabh-Kumar7/webapp.git
  2. Navigate to the project directory:

    cd webapp
  3. Set up the virtual environment:

    python -m venv venv
    source venv/bin/activate
  4. Install dependencies:

    pip install -r requirements.txt
  5. Set up environment variables:

    Create a .env file in the root directory and define the following variables:

    SECRET_KEY=your_secret_key
    DEBUG=True
    DATABASE_NAME=your_database_name
    DATABASE_USER=your_database_user
    DATABASE_PASSWORD=your_database_password
    DATABASE_HOST=your_database_host
    DATABASE_PORT=your_database_port
    
  6. Migrate the database:

    python manage.py migrate

Usage

To run the WebApp locally, use the following command:

python manage.py runserver

or

#This will handle migration and run app
./setup.sh

Access the application in your web browser at http://localhost:8000.

  • Commands to set venv:

      ```bash
        python -m venv venv
        source venv/bin/activate
        deactivate
     
    
  • Commands to set up git remotes:

      git remote | xargs -n 1 git remote remove (To remove all remotes)
      git remote remove origin (To remove specific remote, in this case origin)
      git remote add sourabh [email protected]:Sourabh-Kumar7/webapp.git
      git remote add upstream [email protected]:DeathOrg/webapp.git
      git remote set-url --push upstream no_push
    

Contributing

We welcome contributions from the community. If you'd like to contribute to the project, please follow these guidelines:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Commit your changes with clear and descriptive messages.
  4. Push your changes to your fork.
  5. Submit a pull request to the main repository.

License

This project is licensed under the MIT License.

About

A lightweight web application built to demonstrate cloud-based development practices. It provides a platform for users to perform various tasks, including user management and authentication.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published