Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hackathon: Grants Round 11 Hackathon: Awesome Apps On Akash (1000 AKT) #209

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7a52866
Add files via upload
Developer-piyush Sep 28, 2021
775c5b6
Add files via upload
Developer-piyush Oct 8, 2021
b76159a
Update README.md
Developer-piyush Oct 8, 2021
41b4546
Update README.md
Developer-piyush Oct 8, 2021
788add9
Update readme.md
Developer-piyush Oct 8, 2021
554f31e
Update deploy.yml
Developer-piyush Oct 8, 2021
f63f8d2
Delete secret message(Frontend + backend) directory
Developer-piyush Oct 8, 2021
7fa48d2
Update README.md
Developer-piyush Oct 8, 2021
c06ef4c
Add files via upload
Developer-piyush Oct 10, 2021
ce83e99
Add files via upload
Developer-piyush Oct 10, 2021
2d261c2
Delete secret-message-Frontend-backend directory
Developer-piyush Oct 10, 2021
29ebd64
Add files via upload
Developer-piyush Oct 10, 2021
2023b06
Add files via upload
Developer-piyush Oct 10, 2021
fb5228a
Delete Secret-Message directory
Developer-piyush Oct 10, 2021
f504ce9
Update readme.md
Developer-piyush Oct 10, 2021
79ae55b
Update deploy.yml
Developer-piyush Oct 10, 2021
430867f
Update README.md
Developer-piyush Oct 10, 2021
de3c016
Merge branch 'master' into master
Developer-piyush Oct 10, 2021
24b4776
Update README.md
Developer-piyush Nov 13, 2021
187f4b5
Update README.md
Developer-piyush Nov 13, 2021
4e946e5
Update README.md
Developer-piyush Jan 11, 2023
6b37695
Merge branch 'master' into master
andy108369 Apr 8, 2023
0eba671
Update README.md
Developer-piyush Apr 8, 2023
2ac2b61
Update deploy.yml
Developer-piyush Apr 16, 2023
3b8090c
Merge branch 'master' into master
Developer-piyush Apr 16, 2023
1de2952
Update README.md
Developer-piyush Jul 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions secret message(Frontend + backend)/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
---
andy108369 marked this conversation as resolved.
Show resolved Hide resolved
version: "2.0"

services:
php:
image: piyushch/secretweb3:8.0.0
depends-on:
- mysql
env:
- "MYSQL_HOST=mysql"
- "MYSQL_USER=root"
- "MYSQL_PASSWORD=pass"
- "MYSQL_DB=moe_db"
- "dom=Put_your_domain_here_and_update"
expose:
- port: 80
as: 80
to:
- global: true
mysql:
image: mysql:5.7
expose:
- port: 3306
as: 3306
to:
- service: php
- port: 3306
as: 3307
to:
- service: phpmyadmin
env:
- "MYSQL_ROOT_PASSWORD=rootpassword"
- "MYSQL_USER=root"
- "MYSQL_PASSWORD=pass"
- "MYSQL_DATABASE=moe_db"
phpmyadmin:
image: phpmyadmin/phpmyadmin:4.7
depends-on:
- mysql
expose:
- port: 80
as: 80
to:
- global: true
env:
- "PMA_HOST=mysql"
- "PMA_PORT=3307"

profiles:
compute:
mysql:
resources:
cpu:
units: 1.0
memory:
size: 512Mi
storage:
size: 512Mi
php:
resources:
cpu:
units: 1.0
memory:
size: 512Mi
storage:
size: 512Mi
phpmyadmin:
resources:
cpu:
units: 1.0
memory:
size: 512Mi
storage:
size: 512Mi

placement:
westcoast:
signedBy:
anyOf:
- "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"
pricing:
php:
denom: uakt
amount: 100
mysql:
denom: uakt
amount: 100
phpmyadmin:
denom: uakt
amount: 100

deployment:
php:
westcoast:
profile: php
count: 1
mysql:
westcoast:
profile: mysql
count: 1
phpmyadmin:
westcoast:
profile: phpmyadmin
count: 1
108 changes: 108 additions & 0 deletions secret message(Frontend + backend)/moe_db.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: mysql:3307
-- Generation Time: Sep 28, 2021 at 05:00 PM
-- Server version: 5.7.35
-- PHP Version: 7.2.2

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `moe_db`
--

-- --------------------------------------------------------

--
-- Table structure for table `usershost`
--

CREATE TABLE `usershost` (
`sno` int(255) NOT NULL,
`username` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `usershost`
--



-- --------------------------------------------------------

--
-- Table structure for table `usershostf`
--

CREATE TABLE `usershostf` (
`id` int(255) NOT NULL,
`username` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`mssg` varchar(2000) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `usershostf`
--


--
-- Indexes for dumped tables
--

--
-- Indexes for table `usershost`
--
ALTER TABLE `usershost`
ADD PRIMARY KEY (`sno`),
ADD UNIQUE KEY `username` (`username`);

--
-- Indexes for table `usershostf`
--
ALTER TABLE `usershostf`
ADD PRIMARY KEY (`id`),
ADD KEY `username` (`username`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `usershost`
--
ALTER TABLE `usershost`
MODIFY `sno` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=740;

--
-- AUTO_INCREMENT for table `usershostf`
--
ALTER TABLE `usershostf`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1825;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `usershostf`
--
ALTER TABLE `usershostf`
ADD CONSTRAINT `usershostf_ibfk_1` FOREIGN KEY (`username`) REFERENCES `usershost` (`username`);
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
23 changes: 23 additions & 0 deletions secret message(Frontend + backend)/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### SecretWeb3 is a php,phpmyadmin,mysql and web3 based webapp that allows you to collect anonymous feedback from your friends, coworkers and Fans!

# Tech used:
1) PHP
2) MYSQL
3) BOOTSTRAP, HTML, CSS
4) MORALIS WEB3
5) DOCKER
6) WEB3
7) AKASH SDL
8) Phpmyadmin

# Youtube: [click here](https://youtu.be/0tRC5VwLqAU)

# App link: [Click here](http://vfns3fm5lpb0na9vqqkrl4lns0.ingress.provider-0.prod.sjc1.akash.pub/)

# Send me anonymous message: [click here](http://vfns3fm5lpb0na9vqqkrl4lns0.ingress.provider-0.prod.sjc1.akash.pub//message.php?name=0x20f19cdd7d89a2b9113d6a4ce29189f94259cdda)

# Step by step deploy:
1) copy paste deploy.yml file on akash cloud
2) Copy paste the akash uri and update in deploy.yml file and update
3) Login to mysql using phpmyadmin and import database(Sql) given in github folder
4) Now u r good to go