Doffy is a powerful business tool for beauty and barber professionals and it also gives clients an easy way to discover and book services like haircuts and makeup online.
It has everything you need to run your business from anywhere: online booking that’s easy for small business customers, a point of sale that tracks customer details, and a secure, fast payments system. It’s all in one place, and for one calendar, it’s free.
https://apps.apple.com/app/id1510079483
This project is made up of 5 packages that share code using Yarn Workspaces.
web (React-native-web/React website)
app (React Native Mobil app)
server (GraphQL Typescript server)
common (Code shared between web, app, and server)
controller (Components shared between web and app)
Component (Custom component built for reutilisation)
- npm package manager
- Node.js
- Yarn
- Redis
- PostgresQl
-
clone project https://github.com/Jamesley55/Doffy.git
-
run
Yarn installin workspace -
run
brew services start postgresqlto start PostgreSQL server -
run
createdb mainDBto create PostgreSQL database called mainDB -
Install and start Redis
-
In packages/server create a file called .env and add the following line inside:
BUCKET_NAME= your Amazon S3 bucket if you have one or else Read step #8
IAM_USER_KEY= your Amazon IAM KEY if you have one or else Read step #8
IAM_USER_SECRET= your Amazon User secret key if you have one or else Read step #8
CLOUDFRONT_URL= your Amazon CLOUDFRONT URL if you have one or else Read step #8
Test_PORT=8000
DEVOP_PORT=4000
PRODUCTION_PORT=3000
Redis_HOST=localhost
-
if you dont have an AWS S3 bucket, IAM KEY, USER SECRET KEY comment in
and put signedRequest to "https://localhost:300/randomSignedURL"const s3 = new aws.S3({ accessKeyId: IAM_USER_KEY, secretAccessKey: IAM_USER_SECRET, signatureVersion: "v4", region: "us-east-2", }); const s3Params = { Bucket: BUCKET_NAME, Key: filename, Expires: 60, ContentType: filetype, ACL: "public-read", }; const signedRequest = s3.getSignedUrl("putObject", s3Params); -
Run yarn build in packages/common
-
Run yarn build in packages/controller
-
Run yarn build in packages/component
React Native app register/login
Deploy backend and app
App create Service
App Book service
App find Service Availability
App Notification
logout