Skip to content

Commit

Permalink
Merge pull request #229 from Manthan933/patch-1
Browse files Browse the repository at this point in the history
Patch 1
  • Loading branch information
Vidisha-kayal authored Aug 23, 2021
2 parents 065818e + fc606a2 commit 42b7753
Show file tree
Hide file tree
Showing 203 changed files with 38,355 additions and 36,411 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MONGO_URI = //mongodb
PORT = 5050
JWT_SECRET = mysecret
73 changes: 73 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '36 22 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1


7 changes: 5 additions & 2 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ on: [pull_request, issues]
jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Welocme to Manthan'' Happy Contributing :)'
pr-message: 'Welocme to Manthan'' Happy Contributing :)'
issue-message: 'Welcome to Manthan !!!'
pr-message: 'Welcome to Manthan !!!'
22 changes: 22 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler

name: Labeler
on: [pull_request]

jobs:
label:

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
29 changes: 0 additions & 29 deletions .github/workflows/node.js.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/npm-publish.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: '26 13 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- name: Close Stale Issues
uses: actions/[email protected]

26 changes: 23 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
node_modules/
config/production.json
client/.eslintcache
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage



# misc
.DS_Store
/.env
/.env.local
/.env.development.local
/.env.test.local
/.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

30 changes: 8 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

## About The Project

<img src="https://media.giphy.com/media/QvXUg57xakpdZiOJof/giphy.gif" width="50%">
<!-- <img src="image-in-readme.png" width="50%"> -->

### Description 👇

Expand Down Expand Up @@ -76,9 +76,13 @@ We provide an online testing platform that can be used to conduct tests that are

<!-- GETTING STARTED -->

### Tech Stack: 💻
## Technology Stack 🛠️

<img alt="JavaScript" src="https://img.shields.io/badge/javascript%20-%23323330.svg?&style=for-the-badge&logo=javascript&logoColor=%23F7DF1E"/> <img alt="HTML5" src="https://img.shields.io/badge/html5%20-%23E34F26.svg?&style=for-the-badge&logo=html5&logoColor=white"/> <img alt="React" src="https://img.shields.io/badge/react%20-%2320232a.svg?&style=for-the-badge&logo=react&logoColor=%2361DAFB"/> <img alt="Express.js" src="https://img.shields.io/badge/express.js%20-%23404d59.svg?&style=for-the-badge"/> <img alt="MongoDB" src ="https://img.shields.io/badge/MongoDB-%234ea94b.svg?&style=for-the-badge&logo=mongodb&logoColor=white"/>
- **Coding Languages**: <img alt="JavaScript" src="https://img.shields.io/badge/javascript%20-%23323330.svg?&style=for-the-badge&logo=javascript&logoColor=%23F7DF1E"/> <img alt="HTML5" src="https://img.shields.io/badge/html5%20-%23E34F26.svg?&style=for-the-badge&logo=html5&logoColor=white"/> <img alt="CSS3" src="https://img.shields.io/badge/css3%20-%231572B6.svg?&style=for-the-badge&logo=css3&logoColor=white"/>

- **Tools & Technologies**: <img alt="React" src="https://img.shields.io/badge/react%20-%2320232a.svg?&style=for-the-badge&logo=react&logoColor=%2361DAFB"/> <img alt="MongoDB" src ="https://img.shields.io/badge/MongoDB-%234ea94b.svg?&style=for-the-badge&logo=mongodb&logoColor=white"/> <img alt="Express.js" src="https://img.shields.io/badge/express.js%20-%23404d59.svg?&style=for-the-badge"/> <img alt="NodeJS" src="https://img.shields.io/badge/node.js%20-%2343853D.svg?&style=for-the-badge&logo=node.js&logoColor=white"/>

- **Project Management Tools**: <img alt="GitHub" src="https://img.shields.io/badge/github%20-%23121011.svg?&style=for-the-badge&logo=github&logoColor=white"/> <img alt="Git" src="https://img.shields.io/badge/git%20-%23F05033.svg?&style=for-the-badge&logo=git&logoColor=white"/>

## Getting Started ✅

Expand All @@ -90,7 +94,6 @@ These are the prerequisites required to run this application:

- Node
- npm
- docker
- mongo-uri

### Installation
Expand All @@ -109,28 +112,11 @@ These are the prerequisites required to run this application:
```sh
cd client
npm install
cd ..
cd ..
npm install
npm run dev
```

<!-- USAGE EXAMPLES -->
<!-- ## Screenshots -->
<!-- Docker -->

## Run Using Docker

```sh
docker-compose build
docker-compose up
```

To Stop the containers

```sh
docker-compose down
```

<!-- CONTRIBUTING -->

## Contributing 🖋
Expand Down
74 changes: 74 additions & 0 deletions client/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"root": true,
"env": {
"browser": true,
"node": true
},
"extends": [
"airbnb",
"prettier",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended"
],
"plugins": [
"prettier",
"react",
"react-hooks"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 8,
"requireConfigFile": false,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"impliedStrict": true
}
},
"rules": {
"import": 0,
"max-len": 0,
"no-alert": 0,
"no-shadow": 0,
"no-console": 0,
"comma-dangle": 0,
"import/no-cycle": 0,
"react/prop-types": 1,
"no-return-assign": 0,
"consistent-return": 1,
"no-param-reassign": 0,
"react/display-name": 0,
"no-use-before-define": 0,
"no-underscore-dangle": 0,
"react/button-has-type": 1,
"react/no-children-prop": 0,
"react/forbid-prop-types": 0,
"jsx-a11y/anchor-is-valid": 0,
"react/react-in-jsx-scope": 0,
"react/no-array-index-key": 0,
"react/no-unused-prop-types": 1,
"react/require-default-props": 0,
"react/no-unescaped-entities": 0,
"import/prefer-default-export": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-filename-extension": 0,
"react/destructuring-assignment": 0,
"import/no-extraneous-dependencies": 0,
"react/jsx-key": 1,
"react-hooks/rules-of-hooks": 2,
"no-unused-vars": [
1,
{
"ignoreRestSiblings": false
}
],
"prettier/prettier": [
2,
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": "none",
"tabWidth": 2
}
]
}
}
Loading

0 comments on commit 42b7753

Please sign in to comment.