Skip to content

nathanielalex/Staychaintion

Repository files navigation


Staychaintion
Staychaintion

An innovative Web3-powered AI platform that redefines short-term property rentals built on top of Internet Computer.

StayChaintion is an innovative Web3-powered AI platform that redefines short-term property rentals through the power of blockchain, decentralization, and artificial intelligence. We offer secure, transparent, and AI-enhanced property management solutions that empower hosts and guests with a frictionless, trustless experience.

📚 Complete Documentation

🚩 Features

  • Blockchain-Powered Transactions:
    • Ensuring secure, transparent, and tamper-proof rental agreements.
  • Decentralized Trust System:
    • Utilizing smart contracts to eliminate intermediaries, reducing costs and increasing fairness for both hosts and guests.
  • AI-Driven Smart Pricing & Insights:
    • Predicting optimal rental prices based on location, room type, and room facility.
    • Get to know StayAI, the Staychaintion Chatbot that will help answer all questions related to Property, Web3, and AI.

You can see the following documentation for Internet Computer online:

📦 Packages

Make sure to have dfx installed, update if needed.

  • DFX Version : 0.19.0

Also, make sure node is installed too.

  • Node Version : 20

For more details, you can check the installation docs here:
https://docs.google.com/document/d/e/2PACX-1vTNicu-xuf4EiLAehHIqgfpjAnPjzqMGT-xpZVvYaAWNyvzYK_Ceve_me4PVRIxpzH7ea5PAX9NxGwY/pub

📜 Getting Started (WSL)

Finally, to get it running, you can follow these instructions : Go to visual studio code and open a new terminal.

git clone https://github.com/nathanielalex/Staychaintion
cd staychaintion

npm install
dfx start --clean --background
dfx deps pull
dfx deps deploy

dfx canister call Property_seeder run
dfx canister stop Property_seeder
dfx canister call User_seeder run
dfx canister stop User_seeder

npm run setup
npm run start

🤖 AI Python Setup

Installing Python in Ubuntu

sudo apt update && sudo apt upgrade -y
sudo apt install python3 python3-pip -y
python3 --version   # Check Python version
pip3 --version      # Check Pip version

If the python and pip already installed then we are good to go

Virtual Environment in Ubuntu

cd ./staychaintion/ai-model
pip3 install virtualenv
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip list # to check all installed dependencies

💸 AI Prediction Price

Python & Notebook File Location

cd staychaintion/ai-model/predictions/

Created the AI Model
The Model is already created by running the “train_model_final.py”
Simply just run that file to get the 3 .pkl file

python train_model_final.py

Run the main_final.py python file
Make sure you are in the same directory as where the main_final.py located

uvicorn main_final:app --host 0.0.0.0 --port 8000 --reload

That command will open the port to run the API and the frontend will fecth the API using Axios to get the response.

💸 StayAI Personalized Chatbot

Get the Google API Key

📧 Contact Information

If any questions occured, or in the need of any discussion or details, please contact us :

About

Web3-powered short-term property rentals platform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5