WebApp is a simple web application designed for cloud environments.
For additional infrastructure resources related to this project, refer to the following repositories:
- tf-gcp-infra - Infrastructure setup for Google Cloud Platform.
- serverless - Repository for serverless architecture.
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.
- 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.
To install and set up the WebApp locally, follow these steps:
-
Clone the repository:
git clone [email protected]:Sourabh-Kumar7/webapp.git
-
Navigate to the project directory:
cd webapp
-
Set up the virtual environment:
python -m venv venv source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
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
-
Migrate the database:
python manage.py migrate
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
We welcome contributions from the community. If you'd like to contribute to the project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes with clear and descriptive messages.
- Push your changes to your fork.
- Submit a pull request to the main repository.
This project is licensed under the MIT License.