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

S.V.I.S #40

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
179 changes: 57 additions & 122 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,124 +1,59 @@
## Debugit 2022
[![Debugit](./lib/copsWeek_debugit.png)](https://hackalog.copsiitbhu.co.in/hackathon/debug-it-2022)

## Introduction
Debugit is a week long hackathon open to ideas in a very literal sense. You can make anything from the projects' list we'll share or ignite the inquisitive Bob the Builder inside you to make something exciting and completely new!

## How to make a submission?
Submissions are to be made through GitHub Pull Requests. To know more about how to make a GitHub Pull Request you can refer the [Fundamentals of Git](https://www.youtube.com/playlist?list=PLLt4yMoVgczVgFcTzT60U5IXtNX1qjHL9) playlist which contains everything that you would need.

## Make sure to include
- A README.md file with your name, contact information, project description and how to run the code (and other necessary information).
- A folder containing a demo video of your project.

## Here is a detailed step by step walkthrough if you don't know how to make a Debugit submission.

- Create a fork of this [repository](https://github.com/COPS-IITBHU/Debugit_2022)
A fork is a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project.
1. Click on the fork icon in the repository that you might find at the top right corner.

Demo:
![](./lib/fork.png)

2. It will ask you what would you like to name the forked repository. By default they are named the same as the parent directory. Lets keep the name as it is.

Demo:
![](./lib/fork_name.png)

- Clone the repository that you forked
1. Find the link which you would need to clone and copy it.

Demo:
![](./lib/clone_link.png)

2. Go to the directory in which you want to clone your repository and open the terminal.

Demo:
![](./lib/open_terminal.png)

3. Run the `git clone` command in the terminal (in case of windows, git bash terminal) and append the link that you copied.
```
git clone <repository_link>
```

Demo:
![](./lib/clone.png)

4. You will find that the repository is cloned in the directory.
- Now you can open the directory in vs code and play with the code and complete your project.
- After completing the project, its time to push your code:
1. Open the vs code (or any other editor of your choice) terminal in the project folder.
2. Create a new branch in which you want to push your code using the following code.
```
git checkout -b <branch_name>
```
You can name your branch whatever you like.

Demo:
![](./lib/create_branch.png)

3. Check which branch are you on using the `git branch` command.
```
git branch
```
4. The branch name with a `*` on it is the current branch. If it is different from the branch that you created, then switch to your branch using the `git checkout`
```
git checkout <branch_name>
```
5. You can check the status of the files using
```
git status
```
6. Add (Stage) all the files you want to upload using the `git add` command.
To add individual files run the following command:
```
git add <filename>
```
If you want to add all the files from your project directory you can run
```
git add .
```
It is recommended not to add the some directories like node_modules directory in your commit. You can prevent it by adding it in a `.gitignore` file (For more reference [here](https://www.w3schools.com/git/git_ignore.asp?remote=github)).

Demo:
![](./lib/add_files.png)

6. Commmit your code.
You can commit all your staged code (to the local git repository) using the `git commit` command
Run the following command:
```
git commit -m "first commit"
```
You can replace `first commit` with anything. It is actually a message to let you keep a brief track of what changes has been done in that commit.

Demo:
![](./lib/commit.png)

7. Push your code.
Push all of your commited code using the `git push` command.
Run the following command:
```
git push --set-upstream origin <branch_name>
```
# S.V.I.S
Hey Everyone!

This is a school App

Technologies used: android studio/java for creating the app Firebase to set up the log in and sign up and setting database and used razorpay payment gateway for fee payment
Here's an overview of the app: (Have a look at the demo video folder for a demonstration)
The first page that shows up when you open the app is the "Sign In" page where you can log in to the app if you are already registered.

![photo_2022-04-23_04-03-34](https://user-images.githubusercontent.com/96717231/164813954-2f5d005a-9892-4dd8-ad92-fa3a4b82bc74.jpg)

New User? You can register by clicking the signup button.
first you will be sent a one time password to confirm phone number


![photo_2022-04-23_04-04-06](https://user-images.githubusercontent.com/96717231/164814113-41579e23-e338-4192-b8b6-db9bb6ddd2e1.jpg)


here you can enter phone number


now after clicking on get otp a siz digit otp will be sent to you to verify.


![photo_2022-04-23_04-04-10](https://user-images.githubusercontent.com/96717231/164814234-259ee62d-b6d0-4acc-a9ce-71fe75f2bd77.jpg)
![image](https://user-images.githubusercontent.com/96717231/164814269-50b932fa-a6f6-4263-a357-1f36425ff5db.png)


then you will get a text message otp fill the otp to move furthur.


![image](https://user-images.githubusercontent.com/96717231/164814314-6ca6f088-f605-42c3-8fa6-3b0775c59c0f.png)
![image](https://user-images.githubusercontent.com/96717231/164814331-8dba1b82-3f3b-4b6f-9f4d-895e59aaa5c7.png)


now once you have filled otp now verify otp to move furthur


![image](https://user-images.githubusercontent.com/96717231/164814356-743e51ed-e189-407b-9e07-3aac592771c2.png)
now enter your details to create a database for login credentials.


![image](https://user-images.githubusercontent.com/96717231/164814401-08e0f7bf-c5b7-44f4-841c-931b59a96875.png)
![image](https://user-images.githubusercontent.com/96717231/164814411-df6dbf7b-24b4-4cb6-9719-a8b593512374.png)


now we have registered successfully we will move to the login page


![image](https://user-images.githubusercontent.com/96717231/164814475-e81530b3-1e26-4088-93a4-66b6c671496a.png)


you can pay your fee using razorpay paymentgateway


![image](https://user-images.githubusercontent.com/96717231/164814539-ba8c1f4b-43c0-4bf8-9831-c88d221078ab.png)
![image](https://user-images.githubusercontent.com/96717231/164814561-647c607a-1f3b-4531-a11f-39f284046c2c.png)

Demo:
![](./lib/push.png)

- Make the Pull Request and submit your code.
1. After you push your code, it gets uploaded to your forked directory and creates a new branch that you created.
2. If it notices any difference in the code of your forked repo and the parent repo. It automatically shows you an option to create a pull request.

Demo:
![](./lib/pull_request.png)

3. Write down a brief description of your project in the Pull Request description and give the PR a proper title and click on create pull request. Now GitHub might run some checks. If you pass all the checks, you are good to go.

Demo:
![](./lib/submission.png)


- Pat yourself on the back

![](./lib/pat.gif)

> All The Best 🎉🎉.
15 changes: 15 additions & 0 deletions finalapp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
3 changes: 3 additions & 0 deletions finalapp/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions finalapp/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions finalapp/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions finalapp/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions finalapp/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
44 changes: 44 additions & 0 deletions finalapp/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
plugins {
id 'com.android.application'
id 'com.google.gms.google-services'
}

android {
compileSdk 32

defaultConfig {
applicationId "com.example.finalapp"
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {

implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'com.google.firebase:firebase-auth:21.0.3'
implementation 'com.google.firebase:firebase-database:20.0.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'androidx.browser:browser:1.3.0'
implementation('com.razorpay:checkout:1.6.15')

}
39 changes: 39 additions & 0 deletions finalapp/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"project_info": {
"project_number": "65537479048",
"project_id": "app1-d2d6e",
"storage_bucket": "app1-d2d6e.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:65537479048:android:d30d6f3bb67f0f2f946a3d",
"android_client_info": {
"package_name": "com.example.finalapp"
}
},
"oauth_client": [
{
"client_id": "65537479048-q5pvmu97hc0keneq7ktd16uapu06oamk.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCOOw-X-D78E6cJYi6sd_imUxujB9ft_lQ"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "65537479048-q5pvmu97hc0keneq7ktd16uapu06oamk.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
21 changes: 21 additions & 0 deletions finalapp/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Binary file added finalapp/app/release/app-release.apk
Binary file not shown.
20 changes: 20 additions & 0 deletions finalapp/app/release/output-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.example.finalapp",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0",
"outputFile": "app-release.apk"
}
],
"elementType": "File"
}
Loading