Skip to content

Commit 2d4e9ea

Browse files
committed
Initial code setup
1 parent 8f58f6d commit 2d4e9ea

File tree

13 files changed

+10430
-5
lines changed

13 files changed

+10430
-5
lines changed

.eslintrc.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
commonjs: true,
5+
es6: true,
6+
node: true,
7+
},
8+
extends: 'eslint:recommended',
9+
parser: 'babel-eslint',
10+
parserOptions: {
11+
sourceType: 'module',
12+
ecmaVersion: 2018,
13+
ecmaFeatures: {
14+
jsx: true,
15+
},
16+
},
17+
plugins: ['react'],
18+
rules: {
19+
indent: ['error', 2],
20+
'linebreak-style': ['error', 'unix'],
21+
quotes: ['error', 'single', { allowTemplateLiterals: true }],
22+
semi: ['error', 'always'],
23+
'react/jsx-uses-vars': 1,
24+
'react/jsx-uses-react': 1,
25+
},
26+
};

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.next

README.md

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,54 @@
11
# Upay
2+
23
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors)
34

4-
Description: The foundation of development for every society is the education of its youth. Keeping this in mind, an NGO UPAY (Underprivileged Advancement by Youth), was established in May 2010 by a group of young engineers from IITs and NITs. It mainly aims to provide opportunities to underprivileged children and bring some sunshine in those deprived lives. Ever since it's dawn, UPAY Team has been working wholeheartedly in achieving this aim. Its success story can be culminated by the mere fact that where children were unable to do basic arithmetic calculations are now, not just producing excellent academic results but also bringing laurels to these underprivileged areas. The main vision of UPAY is overcome disparities in education so that every child gets an opportunity to Learn, Grow and Succeed.
5+
The foundation of development for every society is the education of its youth. Keeping this in mind, an NGO UPAY (Underprivileged Advancement by Youth), was established in May 2010 by a group of young engineers from IITs and NITs. It mainly aims to provide opportunities to underprivileged children and bring some sunshine in those deprived lives.
6+
7+
Ever since it's dawn, UPAY Team has been working wholeheartedly in achieving this aim. Its success story can be culminated by the mere fact that where children were unable to do basic arithmetic calculations are now, not just producing excellent academic results but also bringing laurels to these underprivileged areas. The main vision of UPAY is overcome disparities in education so that every child gets an opportunity to Learn, Grow and Succeed.
58

6-
Tech Stack: Node.js, Javascript, Html, css, Django, Python, Android, Core Java, Angular, React
9+
Tech Stack: [Next.js](https://nextjs.org/) (NodeJS, ReactJS), ExpressJS server.
710

811
Admin: Shagufta Gurmukhdas
9-
Mentors: Nupur Baghel , Sambhav Jain, Divjot Singh, Gaurav Sitlani,Bhavin Jawade
12+
Mentors: Nupur Baghel, Sambhav Jain, Divjot Singh, Gaurav Sitlani, Bhavin Jawade
13+
14+
## Building
15+
16+
Make sure you've NodeJS 8 and NPM 5.7 or above.
17+
18+
```bash
19+
# install dependencies using npm
20+
npm ci
21+
22+
# start project in development mode
23+
npm run dev
24+
25+
# build project
26+
npm run build
27+
28+
# start project in production mode (after build)
29+
npm start
30+
31+
# test project
32+
npm run test
33+
```
34+
35+
## Contribution
36+
37+
- Use `npx all-contributors-cli add <your-github-handle> <code|docs|...>` to add yourself in the Contributor list below. The project follows [all-contributors](https://github.com/kentcdodds/all-contributors) format.
38+
- [VSCode](https://code.visualstudio.com/) is recommended as the editor for this project.
39+
- Please install [prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode), [eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint), [jest](https://marketplace.visualstudio.com/items?itemName=Orta.vscode-jest) [plugins](https://marketplace.visualstudio.com/) for VSCode for improved developer experience.
40+
- Please follow [JSDoc](http://usejsdoc.org/) for your submitted code. Use [DocumentThis](https://marketplace.visualstudio.com/items?itemName=joelday.docthis) plugin if required.
41+
- Write tests for complicated components and modules.
1042

1143
## Contributors
1244

1345
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
1446

1547
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
1648
<!-- prettier-ignore -->
17-
| [<img src="https://avatars3.githubusercontent.com/u/6177621?v=4" width="100px;"/><br /><sub><b>Divjot Singh</b></sub>](http://bogas04.github.io)<br />[💻](https://github.com/Shagufta Gurmukhdas/Upay/commits?author=bogas04 "Code") |
49+
| [<img src="https://avatars3.githubusercontent.com/u/6177621?v=4" width="100px;"/><br /><sub><b>Divjot Singh</b></sub>](http://bogas04.github.io)<br />[💻](https://github.com/GirlScriptSummerOfCode/Upay/commits?author=bogas04 "Code") |
1850
| :---: |
51+
1952
<!-- ALL-CONTRIBUTORS-LIST:END -->
2053

21-
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
54+
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!

components/Item/Item.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from 'react';
2+
3+
const Item = ({ id, name }) => (
4+
<React.Fragment>
5+
<style jsx>{`
6+
li {
7+
border: 1px solid grey;
8+
border-radius: 5px;
9+
padding: 10px;
10+
margin: 10px;
11+
max-width: 500px;
12+
}
13+
`}</style>
14+
<li>{name}</li>
15+
</React.Fragment>
16+
);
17+
18+
export default Item;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* globals describe, it, expect */
2+
import React from 'react';
3+
import { mount } from 'enzyme';
4+
import Item from '../Item';
5+
6+
describe('<Item />', () => {
7+
it('renders correctly', () => {
8+
const wrapper = mount(<Item name="Item one" id="123" />);
9+
10+
expect(wrapper).toMatchSnapshot();
11+
});
12+
});
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`<Item /> renders correctly 1`] = `
4+
<Item
5+
id="123"
6+
name="Item one"
7+
>
8+
<JSXStyle
9+
css="li.jsx-4170437294{border:1px solid grey;border-radius:5px;padding:10px;margin:10px;max-width:500px;}"
10+
styleId="4170437294"
11+
/>
12+
<li
13+
className="jsx-4170437294"
14+
>
15+
Item one
16+
</li>
17+
</Item>
18+
`;

components/Item/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './Item';

jest.setup.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { configure } from 'enzyme';
2+
import Adapter from 'enzyme-adapter-react-16';
3+
4+
configure({ adapter: new Adapter() });

0 commit comments

Comments
 (0)