diff --git a/.all-contributorsrc b/.all-contributorsrc new file mode 100644 index 000000000..fff972b47 --- /dev/null +++ b/.all-contributorsrc @@ -0,0 +1,297 @@ +{ + "projectName": "coderplex", + "projectOwner": "coderplex", + "files": [ + "README.md" + ], + "imageSize": 100, + "commit": true, + "contributors": [ + { + "login": "vinaypuppal", + "name": "Vinay Puppal", + "avatar_url": "https://avatars1.githubusercontent.com/u/8843216?v=4", + "profile": "https://www.vinaypuppal.com/", + "contributions": [ + "bug", + "code", + "ideas", + "review" + ] + }, + { + "login": "M-ZubairAhmed", + "name": "Md_ZubairAhmed", + "avatar_url": "https://avatars2.githubusercontent.com/u/17708702?v=4", + "profile": "https://in.linkedin.com/in/mzubairahmed", + "contributions": [ + "bug", + "code", + "doc", + "example", + "ideas", + "plugin", + "review", + "test", + "question" + ] + }, + { + "login": "pbteja1998", + "name": "P Bhanu Teja", + "avatar_url": "https://avatars3.githubusercontent.com/u/17903466?v=4", + "profile": "https://github.com/pbteja1998", + "contributions": [ + "question", + "bug", + "code", + "ideas" + ] + }, + { + "login": "saiabhijitht", + "name": "Sai Abhijith", + "avatar_url": "https://avatars0.githubusercontent.com/u/23223985?v=4", + "profile": "https://github.com/saiabhijitht", + "contributions": [ + "design", + "ideas", + "review" + ] + }, + { + "login": "duttakapil", + "name": "Kapil Dutta", + "avatar_url": "https://avatars1.githubusercontent.com/u/6577624?v=4", + "profile": "http://duttakapil.github.io/", + "contributions": [ + "bug", + "ideas", + "review" + ] + }, + { + "login": "shivakrishna9", + "name": "Shiva Krishna Yadav", + "avatar_url": "https://avatars0.githubusercontent.com/u/15874356?v=4", + "profile": "https://github.com/shivakrishna9", + "contributions": [ + "code", + "doc" + ] + }, + { + "login": "VineethKanaparthi", + "name": "Vineeth Kanaparthi", + "avatar_url": "https://avatars2.githubusercontent.com/u/14841940?v=4", + "profile": "https://github.com/VineethKanaparthi", + "contributions": [ + "doc" + ] + }, + { + "login": "buoyantair", + "name": "buoyantair", + "avatar_url": "https://avatars2.githubusercontent.com/u/5159834?v=4", + "profile": "https://github.com/buoyantair", + "contributions": [ + "code" + ] + }, + { + "login": "jberry93", + "name": "Jeffrey Berry", + "avatar_url": "https://avatars2.githubusercontent.com/u/5133505?v=4", + "profile": "https://github.com/jberry93", + "contributions": [ + "code" + ] + }, + { + "login": "HerrVoennchen", + "name": "Sebastian", + "avatar_url": "https://avatars2.githubusercontent.com/u/6535023?v=4", + "profile": "https://github.com/HerrVoennchen", + "contributions": [ + "code" + ] + }, + { + "login": "hafiz703", + "name": "Hafiz T", + "avatar_url": "https://avatars3.githubusercontent.com/u/15249170?v=4", + "profile": "https://github.com/hafiz703", + "contributions": [ + "code" + ] + }, + { + "login": "rkaranam", + "name": "Raja Sekhar Karanam", + "avatar_url": "https://avatars0.githubusercontent.com/u/13974570?v=4", + "profile": "https://github.com/rkaranam", + "contributions": [ + "doc" + ] + }, + { + "login": "cg-cnu", + "name": "sreenivas alapati", + "avatar_url": "https://avatars0.githubusercontent.com/u/2767425?v=4", + "profile": "https://twitter.com/CgCnu", + "contributions": [ + "code" + ] + }, + { + "login": "luixlacrux", + "name": "Luis Lacruz", + "avatar_url": "https://avatars0.githubusercontent.com/u/11747818?v=4", + "profile": "https://about.me/luislacruz", + "contributions": [ + "code" + ] + }, + { + "login": "majidmazin", + "name": "Mazin Majid", + "avatar_url": "https://avatars0.githubusercontent.com/u/32811957?v=4", + "profile": "https://github.com/majidmazin", + "contributions": [ + "doc" + ] + }, + { + "login": "loangelak", + "name": "loangelak", + "avatar_url": "https://avatars0.githubusercontent.com/u/22547780?v=4", + "profile": "https://github.com/loangelak", + "contributions": [ + "code" + ] + }, + { + "login": "hur", + "name": "Atte Niemi", + "avatar_url": "https://avatars0.githubusercontent.com/u/4998544?v=4", + "profile": "http://twitter.com/HursCode", + "contributions": [ + "code" + ] + }, + { + "login": "tdeschryver", + "name": "tdeschryver", + "avatar_url": "https://avatars1.githubusercontent.com/u/28659384?v=4", + "profile": "https://github.com/tdeschryver", + "contributions": [ + "code" + ] + }, + { + "login": "aliciaphes", + "name": "Alicia Perez", + "avatar_url": "https://avatars1.githubusercontent.com/u/5432702?v=4", + "profile": "http://www.linkedin.com/in/aliciapr", + "contributions": [ + "code" + ] + }, + { + "login": "abiduzz420", + "name": "abiduzz420", + "avatar_url": "https://avatars2.githubusercontent.com/u/18336304?v=4", + "profile": "https://medium.com/@abiduzair420", + "contributions": [ + "code", + "talk" + ] + }, + { + "login": "thepriefy", + "name": "thepriefy", + "avatar_url": "https://avatars2.githubusercontent.com/u/10849586?v=4", + "profile": "https://github.com/thepriefy", + "contributions": [ + "code" + ] + }, + { + "login": "aravindballa", + "name": "Aravind Balla", + "avatar_url": "https://avatars0.githubusercontent.com/u/8036315?v=4", + "profile": "http://aravindballa.com", + "contributions": [ + "review" + ] + }, + { + "login": "charan1922", + "name": "Charan Teja", + "avatar_url": "https://avatars3.githubusercontent.com/u/23609292?v=4", + "profile": "http://charan1922.github.io/myportfolio", + "contributions": [ + "code" + ] + }, + { + "login": "arshadkazmi42", + "name": "Arshad Kazmi", + "avatar_url": "https://avatars3.githubusercontent.com/u/4654382?v=4", + "profile": "http://arshad.kaspat.com", + "contributions": [ + "code" + ] + }, + { + "login": "shahednasser", + "name": "Shahed Nasser", + "avatar_url": "https://avatars1.githubusercontent.com/u/27354907?v=4", + "profile": "https://shahednasser.herokuapp.com", + "contributions": [ + "code" + ] + }, + { + "login": "addictd", + "name": "deep", + "avatar_url": "https://avatars2.githubusercontent.com/u/23260049?v=4", + "profile": "https://github.com/addictd", + "contributions": [ + "code", + "doc" + ] + }, + { + "login": "VickyAbishek", + "name": "VickyAbishek", + "avatar_url": "https://avatars3.githubusercontent.com/u/9305700?v=4", + "profile": "https://github.com/VickyAbishek", + "contributions": [ + "code" + ] + }, + { + "login": "krushiraj", + "name": "Krushi Raj Tula", + "avatar_url": "https://avatars0.githubusercontent.com/u/19507241?v=4", + "profile": "http://krushiraj.github.io", + "contributions": [ + "code" + ] + }, + { + "login": "KirankumarAmbati", + "name": "Kirankumar Ambati", + "avatar_url": "https://avatars1.githubusercontent.com/u/9110567?v=4", + "profile": "https://kirankumarambati.me", + "contributions": [ + "code" + ] + } + ], + "repoType": "github", + "repoHost": "https://github.com", + "contributorsPerLine": 7, + "commitConvention": "none" +} diff --git a/.babelrc b/.babelrc index cc7ce7603..56c02384e 100644 --- a/.babelrc +++ b/.babelrc @@ -1,10 +1,20 @@ { - "presets": ["next/babel"], + "env": { + "development": { + "presets": ["next/babel"] + }, + "production": { + "presets": ["next/babel"] + }, + "test": { + "presets": [["env", { "modules": "commonjs" }], "next/babel"] + } + }, "plugins": [ [ - "lodash", + "emotion", { - "id": ["lodash", "semantic-ui-react"] + "inline": true } ] ] diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..1a62086d8 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = false +insert_final_newline = false \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md similarity index 100% rename from CODE_OF_CONDUCT.md rename to .github/CODE_OF_CONDUCT.md diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 000000000..39a32038c --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1,223 @@ +# How to Contribute + +Coderplex web application comprises of two repositories : + +* [Coderplex](https://github.com/coderplex/coderplex) : Frontend of the application + +* [Coderplex-Backend](https://github.com/coderplex/coderplex-backend) : Backend of the application + +## Table Of Contents + + + + + +- [Code of Conduct](#code-of-conduct) +- [Open Development](#open-development) +- [Branching Model](#branching-model) +- [Development Workflow](#development-workflow) + - [Work on Issues](#work-on-issues) + - [Proposing a Change](#proposing-a-change) + - [Prerequisites](#prerequisites) + - [Sending a Pull Request](#sending-a-pull-request) + - [Running Locally](#running-locally) + - [Before submitting](#before-submitting) + - [Add yourself as a contributor](#add-yourself-as-a-contributor) + - [Submitting PullRequest](#submitting-pullrequest) + - [After submitting](#after-submitting) + - [Received a review request](#received-a-review-request) + - [How to get in touch](#how-to-get-in-touch) +- [Appendix](#appendix) + - [Node Version Manager](#node-version-manager) + - [nvm for Linux & macOS](#nvm-for-linux--macos) + - [nvm-windows for Windows](#nvm-windows-for-windows) + - [Local host occupied](#local-host-occupied) + + + +## Code of Conduct + +Coderplex has adopted [Contributor Covenant](https://github.com/coderplex/coderplex/blob/develop/.github/CODE_OF_CONDUCT.md) that we expect project participants to adhere to. + +## Open Development + +All work related to the application takes place on Github itself. We use [Issues](https://github.com/coderplex/coderplex/issues) to track bugs, discuss ideas and to engage open source contributors. [Projects](https://github.com/coderplex/coderplex/projects) are used to keep track of everything and is our project management tool. We maintain [Wiki](https://github.com/coderplex/coderplex/wiki) for structuring our long term thoughts. Both core team members and contributors sends a pull request which goes through the same review process. Whole process is as transparent as it can be and we strive to keep it that way. + +## Branching Model + +The `master` branch of coderplex is relatively stable branch which we update for every release. We also have auto deployment in place for that particular branch i.e any changes in that branch gets reflected in [https://coderplex.org](https://coderplex.org). It is highly recommended for both maintainers and contributors to raise a pull request to `develop` branch. Before every release we throughly test develop branch and merge into master. + +![Imgur](https://i.imgur.com/KPO2dLul.png) + +_A pull request to any other branch may most likely be closed by our bots_. + +## Development Workflow + +We welcome pull requests from beginners and seasoned javaScript developers alike! + +### Work on Issues + +1. Find an issue that needs assistance by searching for the [open issues](https://github.com/coderplex/coderplex/labels/help-wanted). +1. If you decide to fix an issue, please be sure to check the comment thread in case somebody is already working on a fix. If nobody is working on it at the moment, please leave a comment stating that you intend to work on it so other people don’t accidentally duplicate your effort. +1. If somebody claims an issue but doesn’t follow up for more than a weeks, it’s fine to take over it but you should still leave a comment. + +### Proposing a Change + +1. Open a new issue if you would like report a bug or suggest improvements. +1. Please wait for core team members to comment on the thread. This lets us reach an agreement on your proposal before you put significant effort into it. + +### Prerequisites + +1. [NodeJS](https://nodejs.org/) + + * Minimum version v8.0.0+ + + ```bash + # To check node version + node -v + ``` + + Any lower version than mentioned above may results in this [error](https://github.com/coderplex/coderplex/issues/100). + + > If you face problem updating your node then you might need a Node version manager tool. [Follow here](#node-version-manager) + +1. [Yarn](https://yarnpkg.com) + + * Minimum version v1.2.0+ + * Installing instructions are at [official docs](https://yarnpkg.com/en/docs/install#windows-tab). Use yarn over npm + + > Our team's official policy (for now) is: We only use [Yarn](https://yarnpkg.com/en/docs/install) as our official Node package manager, and so we request you to use Yarn instead of npm and commit `yarn.lock` file. + +1. [Git](https://git-scm.com/download/linux) (Familiarity with git is mandatory). + +### Sending a Pull Request + +*Working on your first Pull Request? You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)* + +#### Running Locally + +1. Fork the [repository](https://github.com/coderplex/coderplex). +1. Then clone your forked repository + ```bash + git clone + ``` +1. Move to the repository root folder + ```bash + cd coderplex + ``` +1. Install dependencies + ```bash + yarn + ``` +1. Start the development server + ```bash + yarn dev + ``` + App now opens at `localhost:3000` in your default browser. + > You may get this [error](#local-host-occupied) if any other app is already running the above port. + +#### Before submitting + +1. From your fork, create a [branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/) and name it. eg. `typo-in-readme` +1. If you’ve fixed a bug or added code that should be tested, add tests! +1. Ensure that all test pass + ```bash + yarn test + ``` +1. Run code formatters + ```bash + yarn lint + ``` +1. Add and commit your code. Please give meaning full commit messages. + +#### Add yourself as a contributor + +This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome! + +To add yourself to the table of contributors on the `README.md`, please use the automated script as part of your PR: + +```bash +yarn run add-contributor +``` + +Follow the prompt and commit `.all-contributorsrc` and `README.md` in the PR. + +#### Submitting PullRequest + +1. Pull latest code from [upstream repository's](https://help.github.com/articles/merging-an-upstream-repository-into-your-fork/)`develop`, if in case anything new were merged while you were working on your fork. +1. Push the code to your fork. +1. Raise the pull request from your created branch to `develop` branch of coderplex. [why develop instead of master branch?](https://www.atlassian.com/git/tutorials/comparing-workflows) +1. Take some time to give a brief description of the work you have done. + +#### After submitting + +1. Wait for all checks to pass in below section. +1. Your changes are deployed with a unique link `https://deploy-preview-xx--coderplex.netlify.com`. + + _`- xx` is your pull request number._ + +1. The core team will review your pull request and either merge it, request changes to it, or close it with an explanation. + +##### Received a review request + +* Work on the requested changes +* Push the changes as you did earlier, the pull request will automatically catch those and update itself. + +### How to get in touch + +* Coderplex [Discord Channel](https://discord.gg/dVnQ2Gf) +* Tweet core team members : + * Vinay Puppal [@VinayPuppal](https://twitter.com/vinaypuppal) + * Md-ZubairAhmed [@Md_ZubairAhmed](https://twitter.com/Md_ZubairAhmed) + +## Appendix + +### Node Version Manager + +#### [nvm](https://github.com/creationix/nvm) for Linux & macOS + +```bash +# Installation +curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash + +# Install latest node lts +nvm install --lts + +# Use installed version +nvm use --lts + +# Run the app in the same terminal session +``` + +_Make sure you have [curl](https://curl.haxx.se/) installed_ + +#### [nvm-windows](https://github.com/coreybutler/nvm-windows) for Windows + +It comes with an [installer](https://github.com/coreybutler/nvm-windows#installation--upgrades). + +```bash +# Install particular version +nvm install 8.9.1 + +# Use installed version +nvm use 8.9.1 +``` + +Still facing problem this [article](https://medium.com/appseed-io/how-to-run-multiple-versions-of-node-js-with-nvm-for-windows-ffbe5c7a2b47) from [@skounis](https://twitter.com/skounis) explain in details. + +### Local host occupied + +```js +Error: listen EADDRINUSE :::3000 + at Object._errnoException (util.js:1024:11) + at _exceptionWithHostPort (util.js:1046:20) + at Server.setupListenHandle [as _listen2] (net.js:1351:14) + at listenInCluster (net.js:1392:12) + at Server.listen (net.js:1476:7) + at app.prepare.then (/home/m-zubairahmed/github/official/coderplex-frontend/server.js:26:6) + at + at process._tickCallback (internal/process/next_tick.js:188:7) +error Command failed with exit code 1. +``` + +If you get this error while running `yarn dev` then probably another app is occupying `localhost:3000`. You may want to close that and run the command again. diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 000000000..4b7dc2ef2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,41 @@ + + + + + + +* [ ] I have searched the [issues](https://github.com/coderplex/coderplex/issues) of this repository and believe that this is not a duplicate. + +# Expected Behavior + + + + + +# Current Behavior + + + + + +## Steps to Reproduce (for bugs) + + + + + +1. +1. + +## Your Environment + + + +| Tech | Version | +| ------- | ------- | +| OS | | +| browser | | +| etc | | diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000..60aa30dc9 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,45 @@ + + + + + + +# What kind of change does this PR introduce + + + +## What is the current behavior + + + +## What is the new behavior + + + +### Checklist for this PR + + + + + +* [ ] I have read [contributing guidelines](https://github.com/coderplex/coderplex/blob/develop/.github/CONTRIBUTING.md). +* [ ] I executed `yarn lint` locally to format my code. +* [ ] I added revelant Tests to verify my code. +* [ ] All tests `yarn test` ran successfully. +* [ ] Pull request is towards `develop` branch. +* [ ] I have tested responsiveness of the UI by checking on devices using [ScreenFly](http://quirktools.com/screenfly/) +* [ ] Added myself to contributors table +* [ ] Documentation +* [ ] Ready to be merged + + + + diff --git a/.github/config.yml b/.github/config.yml new file mode 100644 index 000000000..2a5e44572 --- /dev/null +++ b/.github/config.yml @@ -0,0 +1,30 @@ +# Configuration for request-info - https://github.com/behaviorbot/request-info + +# *Required* Comment to reply with +requestInfoReplyComment: > + We would appreciate it if you could provide us with more info about this issue/pr! + +# *OPTIONAL* Label to be added to Issues and Pull Requests with insufficient information given +requestInfoLabelToAdd: needs-more-info + +# Configuration for welcome - https://github.com/behaviorbot/welcome + +# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome + +# Comment to be posted to on first time issues +newIssueWelcomeComment: > + Thanks for opening this issue, a maintainer will get back to you shortly! + +# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome + +# Comment to be posted to on PRs from first time contributors in your repository +newPRWelcomeComment: > + Thanks so much for opening your first PR here! + +# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge + +# Comment to be posted to on pull requests merged by a first time user +firstPRMergeComment: > + :tada: :tada: :confetti_ball: Congrats on merging your first pull request! We here at coderplex.org are proud of you!. If you believe in our :page_with_curl: [mission statement](https://medium.com/coderplex/a-new-name-a-new-beginning-freecodecamp-hyderabad-is-now-coderplex-b5b43dbd06ed) please :star: us. + +# It is recommended to include as many gifs and emojis as possible! diff --git a/.gitignore b/.gitignore index d05f5f2d1..7a82b5398 100644 --- a/.gitignore +++ b/.gitignore @@ -45,10 +45,7 @@ node_modules # IDE - VSCode .vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json +jsconfig.json ### Linux ### *~ diff --git a/.markdownlint.json b/.markdownlint.json new file mode 100644 index 000000000..25b022d75 --- /dev/null +++ b/.markdownlint.json @@ -0,0 +1,6 @@ +{ + "line-length": false, + "ul-style": false, + "no-inline-html": false, + "first-line-h1": false +} diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..466e24805 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +out/ \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 000000000..a3042a80a --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "printWidth": 120, + "semi": true, + "trailingComma": "es5", + "singleQuote": true, + "jsxBracketSameLine": true, + "proseWrap": never +} diff --git a/.travis.yml b/.travis.yml index d74fd304d..c4fae9961 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,7 @@ -sudo: required dist: trusty language: node_js node_js: - - '8.6' + - '8.11.3' before_install: - 'curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.27.5' - 'export PATH="$HOME/.yarn/bin:$PATH"' diff --git a/.yarnclean b/.yarnclean new file mode 100644 index 000000000..b591611ea --- /dev/null +++ b/.yarnclean @@ -0,0 +1,45 @@ +# test directories +__tests__ +test +tests +powered-test + +# asset directories +docs +doc +website +images +assets + +# examples +example +examples + +# code coverage directories +coverage +.nyc_output + +# build scripts +Makefile +Gulpfile.js +Gruntfile.js + +# configs +appveyor.yml +circle.yml +codeship-services.yml +codeship-steps.yml +wercker.yml +.tern-project +.gitattributes +.editorconfig +.*ignore +.eslintrc +.jshintrc +.flowconfig +.documentup.json +.yarn-metadata.json +.travis.yml + +# misc +*.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 9de96b2d9..000000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,23 +0,0 @@ -## Contribution guidlines - -### Testing - -#### Test deploy - - -* Install [now-cli](https://zeit.co/now) -```bash -$ npm i -g now -``` -* Run **now** inside the project root directory -```bash -$ now -``` -* After the app is deployed. [Alias](https://zeit.co/docs/features/aliases) your generated link to *coderplex-pr-XX.now.sh* -```bash -$ now alias url coderplex-pr-XX -``` -> url = generated link to website when `now` was run - -> XX = Opened pull request number - diff --git a/README.md b/README.md index 920ba77e3..3582c527f 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,72 @@ -# Coderplex Website [Work In Progress] +# Coderplex Org Website -[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) -[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) -[![Build Status](https://travis-ci.org/coderplex/coderplex.svg?branch=master)](https://travis-ci.org/coderplex/coderplex) +[![Build Status](https://travis-ci.org/coderplex/coderplex.svg?branch=master)](https://travis-ci.org/coderplex/coderplex) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) ![coderplex](https://david-dm.org/coderplex/coderplex.svg) [![All Contributors](https://img.shields.io/badge/all_contributors-28-orange.svg?style=flat-square)](#contributors-) [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/coderplex/coderplex/blob/master/LICENSE) + +## Follow our community here at [https://www.coderplex.org](https://www.coderplex.org) + +> :construction: under active development, you can check progress at [https://dev.coderplex.org](https://dev.coderplex.org) which will be merged soon to main site ## About This project mainly uses -- [Next.js](https://github.com/zeit/next.js/) -- [Semantic UI React](http://react.semantic-ui.com/introduction) +* [ReactJS](https://reactjs.org/) - A declarative, efficient, and flexible JavaScript library for building user interfaces. +* [Next.js](https://github.com/zeit/next.js/) - A minimalistic framework for server-rendered React applications. +* [emotion](https://emotion.sh) - A high performance, lightweight css-in-js library. + +## Contributing + +We welcome pull requests from beginners and seasoned javaScript developers alike!. You can work on open issues, fix bugs and more. Be sure to read our [contributing guide](https://github.com/coderplex/coderplex/blob/develop/.github/CONTRIBUTING.md). This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!. -## Demo +## Contributors -[https://coderplex.org](https://coderplex.org) +Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): -## Running Locally + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Vinay Puppal
Vinay Puppal

🐛 💻 🤔 👀
Md_ZubairAhmed
Md_ZubairAhmed

🐛 💻 📖 💡 🤔 🔌 👀 ⚠️ 💬
P Bhanu Teja
P Bhanu Teja

💬 🐛 💻 🤔
Sai Abhijith
Sai Abhijith

🎨 🤔 👀
Kapil Dutta
Kapil Dutta

🐛 🤔 👀
Shiva Krishna Yadav
Shiva Krishna Yadav

💻 📖
Vineeth Kanaparthi
Vineeth Kanaparthi

📖
buoyantair
buoyantair

💻
Jeffrey Berry
Jeffrey Berry

💻
Sebastian
Sebastian

💻
Hafiz T
Hafiz T

💻
Raja Sekhar Karanam
Raja Sekhar Karanam

📖
sreenivas alapati
sreenivas alapati

💻
Luis Lacruz
Luis Lacruz

💻
Mazin Majid
Mazin Majid

📖
loangelak
loangelak

💻
Atte Niemi
Atte Niemi

💻
tdeschryver
tdeschryver

💻
Alicia Perez
Alicia Perez

💻
abiduzz420
abiduzz420

💻 📢
thepriefy
thepriefy

💻
Aravind Balla
Aravind Balla

👀
Charan Teja
Charan Teja

💻
Arshad Kazmi
Arshad Kazmi

💻
Shahed Nasser
Shahed Nasser

💻
deep
deep

💻 📖
VickyAbishek
VickyAbishek

💻
Krushi Raj Tula
Krushi Raj Tula

💻
Kirankumar Ambati
Kirankumar Ambati

💻
-1. Make sure you have [NodeJS](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed. - > Make sure you install node version 8 or above and check node version by running `node -v` -1. Then clone this repo - ```bash - git clone git@github.com:coderplex/coderplex.git - ``` -1. `cd coderplex` -1. `npm install` -1. `npm run dev` to start local development server -1. Open app at `localhost:3000` + + + diff --git a/__tests__/header.test.js b/__tests__/header.test.js new file mode 100644 index 000000000..aedef0a2e --- /dev/null +++ b/__tests__/header.test.js @@ -0,0 +1,31 @@ +describe('Testing Header of `components/header`', () => { + it('Sample test', () => { + expect('A').toEqual('A'); + }); + /** + * Disable for now + it('should have title tag rendered', () => { + expect(shallowWrapper.find('h1').length).toBe(1); + }); + + it('should have subtitle tag rendered', () => { + expect(shallowWrapper.find('h2').length).toBe(1); + }); + + describe('should render the props', () => { + const pageTitle = 'title of the page'; + const pageSubTitle = 'Subtitle of the page'; + const rootWrapper = shallow(); + + it('should display title', () => { + const headerElement = rootWrapper.find('.headline'); + expect(headerElement.props().children).toEqual(pageTitle); + }); + + it('should display subtitle', () => { + const subHeaderElement = rootWrapper.find('h2'); + expect(subHeaderElement.props().children).toEqual(pageSubTitle); + }); + }); + */ +}); diff --git a/components/common/airtable-form.js b/components/common/airtable-form.js new file mode 100644 index 000000000..1129e4665 --- /dev/null +++ b/components/common/airtable-form.js @@ -0,0 +1,32 @@ +import React from 'react'; +import Head from 'next/head'; +import styled from 'react-emotion'; + +import Layout from './layout'; + +export default ({ formId, height }) => { + return ( + + +