Skip to content

BudgetChain/BudgetChain-Frontend

Repository files navigation

BudgetChain-Frontend

Welcome to the BudgetChain Frontend! This project is built using Next.js and serves as the user interface for the BudgetChain application. It allows users to manage their budgets efficiently and provides a seamless experience for interacting with the backend services.

Table of Contents

Features

  • User Authentication: Secure login and registration for users.
  • Budget Management: Create, edit, and delete budgets.
  • Analytics Dashboard: Visual representation of spending and saving trends.
  • Responsive Design: Optimized for both desktop and mobile devices.
  • Real-time Updates: Instant updates to the UI as changes are made.

Setup

To get started with the BudgetChain Frontend, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/yourusername/BudgetChain-Frontend.git
    cd BudgetChain-Frontend
  2. Install Dependencies:

    npm install
  3. Create Environment Variables: Create a .env.local file in the root of the project and add the required environment variables. Use .env.local.template as a reference.

  4. Start the Development Server:

    npm run dev

    Open your browser and navigate to http://localhost:3000 to see the application in action.

Scripts

The following scripts are available to manage the project:

  • npm run dev: Start the development server with hot reloading.
  • npm run build: Build the project for production, optimizing assets and code.
  • npm run start: Start the production server after building the project.
  • npm run lint: Run ESLint to check for code quality and style issues.

Environment Variables

The following environment variables are required for the project to run:

  • NEXT_PUBLIC_API_URL: The base URL for the API.
  • NEXT_PUBLIC_ANALYTICS_ID: Google Analytics tracking ID.
  • DATABASE_URL: The connection URL for the database.
  • SECRET_KEY: A secret key for encryption.

Make sure to fill in these variables in your .env.local file.

Folder Structure

The project follows a standard Next.js folder structure:

/pages          # Contains the application routes
/components     # Reusable React components
/styles         # Global styles and CSS modules
/public         # Static assets like images and fonts
/utils          # Utility functions and helpers
/hooks          # Custom React hooks

Contributing

We welcome contributions to the BudgetChain Frontend! If you would like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Make your changes and commit them (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a pull request.

Please ensure your code adheres to the project's coding standards and includes appropriate tests.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

For any questions or inquiries, please reach out to the project maintainers:

Thank you for your interest in BudgetChain! We hope you find this project useful and enjoyable to work with. Happy coding!

Releases

No releases published

Packages

No packages published

Contributors 33