Online pet marketing made easy online.
This is a full stack application for buying and setting pets online.
petmall
is a multi-repo project that contains the following packages
- api
- mobile
- web
api
- this is the backend server where the database and storage logic is handled.mobile
- this is a react-native client consuming the graphql api.web
- this is a web application client built withreact.js
and is consuming the graphql api.
In this section I will demonstrate the logic behind my application which can be visualized as follows.
|----------> [messages] ------> [user]
|
|------------> [chats]-------> [pet] ------> [seller]
|
|
|------------> [notifications]
|
| |---------> [reaction] ------> [user]
| |
[user/seller] -> [pet] ------> [comment] -------------> [reaction] -----> [user]
| | |
| | |------> [comment] -----> [reaction] ---> [user]
[location] <------| | |
| |---------> [user]
|--------> [user]
-
It all starts with the
user
orseller
- anyone who created an account with
petmall
can buy and sell pets. - the user can have access to his/her
notifications
which are triggered when someone in the app:- react to your pet
- react to your comment
- commented to your pet
- reply to your comment on a pet
- real time messages are the part of this app. The
chat
models allows buyers and sellers of pets to chat privately. and each chat will be modeled withmessages
pet
- The user/seller of the pet can edit pet details and even mark the pet as sold if the pet is sold.
- an authenticated seller or buyer will have access to the notifications and messages and a profile.
- In the profile the user can do the following:
- edit profile details
- signing out of the app
- delete their account
- change account password
- anyone who created an account with
-
pet
model contains the followinglocation
of the petreactions
to the pet by otherscomments
/reviews
of the pets by others
In this section wi will show the screenshot of the petmall
app for both the web
and mobile
version.
The web UI and basic functionality looks as follows:
- Landing
- Login Page
- Register Page
- Home Page
This page is shown when you are authenticated.
- Creating a New Pet
- Opening a Pet
- Edit Pet
- Notifications
- Messages
- Request Reset Password Email Link
- Changing Password
The following are the basic screens of the mobile app of petmall.
- Landing
- Auth Pages/Screens
- App Home
- Profile
This page is shown when you are authenticated.
- Creating a New Pet
- Opening a Pet
- Notifications and Chats
- Push Notifications
In this project I used the following languages:
- typescript
In this project I used the following technologies.
- api
fastify
server withmercurius
graphql withtype-graphql
jwt
authenticationprisma
postgres
databaseredis
cache
- web
react.js
semantic-ui
for some componentsreact-icons
for some iconsreact-router-dom
for pages and routingurql
graphql clientredux
for state managementgraphql-codegen
in development for generating graphql-types from graphql documentslocalStorage
- mobile
react-native
expo-font
react-native-navigation
urql
graphql clientredux
for state managementgraphql-codegen
in development for generating graphql-types from graphql documentsasync-storage
In this project I'm using the MIT
license which reads as follows:
MIT License
Copyright (c) 2023 crispengari
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.