Coder Social home page Coder Social logo

mydevify / mypet Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 14.22 MB

Welcome to MyPet, where the passion for pet adoption meets the expertise of MyDevify.com. Our platform, powered by MyDevify.com's cutting-edge development tools and expertise, revolutionizes the way homeless pets find loving homes.

CSS 2.76% TypeScript 60.55% JavaScript 36.69%

mypet's Introduction

MyPet - for Animal adoption organizations

Welcome to MyPet, where the passion for pet adoption meets the expertise of MyDevify.com. Our platform, powered by MyDevify.com's cutting-edge development tools and expertise, revolutionizes the way homeless pets find loving homes.

Showcase

Image 1 Image 2
Image 3 Image 4
Image 5 Image 6
Image 7 Image 8
Image 9 Image 10

Development

  • Framework: Next.js with TypeScript
  • UI Development: DaisyUI
  • Database: MongoDB with Mongoose
  • Authentication: next-auth@beta15

Project Features:

MyPet offers a comprehensive set of features designed to streamline animal adoption processes and enhance user experience.

User-Friendly Interface

  • Intuitive design ensures ease of use for all users.

Full-Stack Framework

  • Developed with Next.js and TypeScript for efficient full-stack development.

Modern UI Development

  • Utilizes DaisyUI for visually appealing and modern user interface design.

Secure Authentication

  • Implements next-auth@beta15 for robust and secure user authentication.

Role-Based Authorization

  • Supports role-based access control for administrators, moderators, and users.

Dashboard Functionality

  • Provides a centralized dashboard for users to manage profiles, adoption requests, and settings.

Pet Management

  • Moderators can add, edit, and delete pet listings efficiently.

Adoption Request Management

  • Moderators can handle adoption requests, including approval, rejection, and pending status.

Global Notifications

  • Moderator Control Panel enables the creation and management of global notifications and announcements.

Admin Privileges

  • Administrators have additional privileges for user management tasks.

Theme Modes

  • Offers light and dark theme modes for user interface customization.

Error Handling

  • Features robust error handling mechanisms for smooth user experience.

Customization

  • Allows organizations to customize the platform to fit their specific needs.

Scalability

  • Designed to scale with the growth of adoption organizations and user base.

Open Source

  • MyPet is open-source, allowing for community contributions and customization.

Routes

Guest Access:

  • example.com/: Accessible by guests. Guests can browse available pets and adoption information.
  • example.com/login: Login page
  • example.com/register: Registration page

User Dashboard:

  • example.com/dashboard: Requires account registration/login. Authenticated users can access their profile, update settings, and manage adoption requests.
    • example.com/dashboard/profile: Display user profile
    • example.com/dashboard/settings: Update user settings
    • example.com/dashboard/myrequests: Display and manage adoption requests
    • example.com/dashboard/petslist: Display list of available pets

Moderator Authorization

Pet Management:

  • example.com/dashboard/pets: List of pets to manage
  • example.com/dashboard/pets/add: Add a new pet
  • example.com/dashboard/pets/[id]: Update pet information

Adoption Request Management:

  • example.com/dashboard/managerequests: Manage users' adoption requests. Moderators can approve/decline or set requests to pending.

Moderator Control Panel (ModCP):

  • example.com/dashboard/modcp: Create/update/delete global notifications or announcements

Admin Authorization

User Management:

  • example.com/dashboard/users: List of users to manage
  • example.com/dashboard/users/add: Add a new user
  • example.com/dashboard/update/[id]: Update user information

Functions

  • Actions Functions:

    • app/lib/actions.js: Contains actions functions.
  • Fetching Functions:

    • app/lib/data.js: Contains fetching functions.
  • Model Functions:

    • app/lib/model.js: Contains model functions.
  • Utility Functions:

    • app/lib/utils.js: Contains Mongoose connection utilities.

Setup

  1. Clone the repository:
git clone https://github.com/mydevify/MyPet.git
  1. Navigate to the frontend directory:
cd frontend
  1. Install dependencies:
npm install
  1. Create a .env file inside the frontend root directory and paste the following configuration:
MONGO=<your_MongoDB_connection_link>
AUTH_SECRET=xloyistestingbeta
AUTH_URL=http://localhost:3000/
REACT_EDITOR=atom
API_BASE_URL=http://localhost:3000/

Replace <your_MongoDB_connection_link> with the connection link obtained from your MongoDB account.

  1. Save the .env file.

MongoDB Setup

  1. Create an account on MongoDB.
  2. Create a new cluster.
  3. Copy the connection link to the MONGO variable in the .env file.

Usage

Once the setup is complete, you can start the development server:

npm run dev

You Can import the data i provided you in the repository root

Login: Username: admin password: admin

Authors

mypet's People

Contributors

mydevify avatar

Stargazers

VelocityHost avatar Ranim Koubaa 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.