Skip to content

MiladHajiShafiee/appointmet-booking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appointment Booking

This Project is for appointment booking, In this project, technologies like React js, React Naitve, Node js, Express js, Mongoose js, and MongoDB are used, it is a full-stack MERN Project.

In this project, you can create and delete time slots and accept or reject appointments as a seller, and as a client, you can search in sellers and send a reservation request to sellers for appointments.

client mobile booking

How to use

  1. Clone the repository

  2. Node and npm should be installed globally in your computer.

  3. nodemon should be installed globally in your computer if it is not in the cloned project root directory run:

    npm install --save-dev nodemon

  4. Sign Up in MongoDB and make your cluster and project and then database and connect that database to your project, you can also do it with help of YOUTUBE videos.

  5. Create a .env file in the cloned project root directory and add these:

     NODE_ENV=development
     PORT=5000
     MONGO_URI="YOUR MONGO URI"
     JWT_SECRET="YOUR JWT SECRET"
    

    replace your MONGO_URI and JWT_SECRET(for this use whatever you want like myawesomeproject)

  6. In the mobile/source/api.js put your Wi-Fi IPv4 address instead of "YOUR URL".

  7. In the cloned project root directory run:

    npm install

  8. Navigate to the web-app directory and run:

    npm install

  9. Navigate to the mobile directory and run:

    npm install

    npx react-native run-android

  10. In the cloned project root directory run:

    npm run data:import

    or

    yarn data:import

  11. After all start your server, client, and mobile apps with these commands in order:

    npm run server

    npm start

    yarn start or npm start

  12. Now you can log in to the web client application with one of the accounts in the backend/data/seller.js and also can log in to the mobile client application with one of the accounts in the backend/data/clients.js.

License

This Repo is licensed under BSD 3-Clause permissive license. You can read it here.