/aiboostWeb3

Web3.0 Application with transfer ETH, stake Coin, lottery game, buy AiBoost token.

Primary LanguageJavaScript

Contributors MIT License LinkedIn


Logo

Aiboost next

AiBoost web3 Personal Project

View Demo Β· Report Bug Β· Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project

AiBoost next is a extenstion to project https://www.aiboost.in this is a personal project which showcase the Web3 aspect of a website. it has functionalities like - send ether, lottery game, staking the token, buy aiboost token.

Built With

For Technlogy
FrontendπŸ“± ReactJS
BlockchainπŸ“± Smart contracts, Eth, Solidity
web3 Framework Truffle, ganache
Deployed☁️ Heroku

Libraries

FRONTEND

  • ReactJS
  • TailwindCSS
  • react-router
  • Ethers
  • framer-motion

BACKEND

  • hardhat
  • ethers
  • chai

Folder Structure

Frontend

frontend/
┣ src/
┃ ┣ app/
┃ ┃ ┣ auth/
┃ ┃ ┃ ┣ confirm-email/
┃ ┃ ┃ ┣ login/
┃ ┃ ┃ ┣ page-not-found/
┃ ┃ ┃ ┣ reset-password/
┃ ┃ ┃ β”— sign-up/
┃ ┃ ┣ core/
┃ ┃ ┃ ┣ enum/
┃ ┃ ┃ ┣ guard/
┃ ┃ ┃ ┣ interceptor/
┃ ┃ ┃ ┣ model/
┃ ┃ ┃ β”— service/
┃ ┃ ┣ data/
┃ ┃ ┣ pages/
┃ ┃ ┃ ┣ admin/
┃ ┃ ┃ ┣ common/
┃ ┃ ┃ ┃ β”— edit-profile/
┃ ┃ ┃ ┣ doctor/
┃ ┃ ┃ ┃ ┣ dashboard/
┃ ┃ ┃ ┃ ┣ medicine/
┃ ┃ ┃ ┃ ┃ ┣ add-edit-medicine/
┃ ┃ ┃ ┃ ┣ patient/
┃ ┃ ┃ ┃ ┃ ┣ diagnose/
┃ ┃ ┃ ┃ ┃ ┣ list/
┃ ┃ ┃ ┃ ┃ β”— queue/
┃ ┃ ┃ ┣ lab/
┃ ┃ ┃ ┣ layout/
┃ ┃ ┃ ┣ receptionist/
┃ ┃ ┃ ┃ ┣ patient/
┃ ┃ ┃ ┃ ┃ ┣ existing/
┃ ┃ ┃ ┃ ┃ ┣ list/
┃ ┃ ┃ ┃ ┃ ┣ new/
┃ ┃ ┃ ┣ super-admin/
┃ ┃ ┃ β”— user/
┃ ┣ assets/
┃ ┃ ┣ images/

Backend

backend/
┣ bin/
┃ β”— www
┣ config/
┃ ┣ aws-config.json
┃ β”— passport.js
┣ models/
┃ ┣ hospital.js
┃ ┣ medicine.js
┃ ┣ patient.js
┃ β”— user.js
┣ public/
┣ routes/
┃ ┣ _helper.js
┃ ┣ admin.js
┃ ┣ aws.js
┃ ┣ common.js
┃ ┣ doctor.js
┃ ┣ image.js
┃ ┣ lab.js
┃ ┣ medicine.js
┃ ┣ receptionist.js
┃ β”— user.js
┣ views/
┃ ┣ error.jade
┃ ┣ index.jade
┃ β”— layout.jade
┣ .dockerignore
┣ .env
┣ Dockerfile
┣ app.js
┣ main.py
┣ package-lock.json
┣ package.json
β”— readme.txt

Getting Started

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

Installation

  1. Clone the repo
    $ git clone https://github.com/ankit5577/medicoEye.git
  2. Install NPM packages in both frontend and backend folder
    $ npm install
  3. add .env file in backend folder
     PORT="3000" # specify express port
     HOST="" 
     MONGO_URL="" # specify mongodb url
     SECRET="" # secret for passportjs
     EMAIL="" # gmail temp app email
     PASSWORD="" # gmail temp app password
  4. run npm start in both frontend and backend folders.

Usage

login with any of these credentials:

<!-- for receptionistπŸ§‘πŸ½β€πŸ’» role -->
email: cmcrecep@gmail.com
password: ankit

<!-- for doctorπŸ‘¨πŸ»β€βš•οΈ role -->
email: cmcdoc@gmail.com
password: ankit

email: cmcdoc2@gmail.com
password: ankit

<!-- for adminπŸ‘¨β€πŸ’Ό role -->
email: ankit@ankit.com
password: ankit

<!-- for labπŸ‘©β€πŸ”¬ role -->
email: cmclab@gmail.com
password: ankit
  • Dashboard

Contributing

For AiBoost.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Ankit Kaushal - @ankit55771 - ankit@aiboost.in

Project Link: https://www.medicoeye.in/