Giter Club home page Giter Club logo

mywebapp's Introduction

My Web Application

Getting Started

Backend Setup

  1. Database Setup:

    • Install MySQL and create a database named your_database_name.

    • Set up a .env file in the backend folder with the following environment variables:

      DB_USER=your_database_username
      DB_PASSWORD=your_database_password
      DB_HOST=your_database_host (e.g., localhost)
      DB_DATABASE=your_database_name
      
    • Run the init_db() function in backend/database.py to initialize the database schema.

  2. Starting the Backend:

    • Open a terminal in the backend directory.
    • Install the required Python packages using: pip install -r requirements.txt
    • Run the backend server using: python main.py

Frontend Setup

  1. Starting the Frontend:

    • Open a terminal in the frontend directory.
    • Start a local server using: python -m http.server 8080

    Access the frontend by opening your web browser and navigating to http://localhost:8080.

Usage

  1. User Registration:

    • Fill in the registration form with a valid email, name, and password.
    • Solve the CAPTCHA to verify you're a human.
    • Click "Register" to create a new user account.
  2. User Login:

    • Fill in the login form with your registered email and password.
    • Click "Login" to access your user profile.
  3. User Profile:

    • View your profile information after successful login.
    • Click "Edit Profile" to update your name and password.
    • Click "Delete Profile" to remove your user account.
  4. Logout:

    • Click the "Logout" button to log out of your account.

mywebapp's People

Contributors

peter1998 avatar

Watchers

 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.