7 |
8 |
9 |
10 |
11 | ## ⚡ Features
12 | - Showcase what you built and get constructive feedback from the members of the makersclub.
13 | - Start a discuusion thread on any topic and invite people to share their thoughts and ideas.
14 | - A collection of resources shared by members of the makers club.
15 |
16 | ## 👨💻 Tech stack
17 | - React
18 | - Nodejs
19 | - Express
20 | - HarperDB
21 | - Redux
22 |
23 | Built while participating in [Hashnode x HarperDB Hackathon](https://hashnode.com/n/harperdbhackathon)
24 |
25 | Don't forget to leave a ⭐ if you found this useful.
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/src/reducers/resources.js:
--------------------------------------------------------------------------------
1 | import {
2 | ADD_RESOURCE,
3 | RESOURCE_ERROR,
4 | GET_ALL_RESOURCES
5 | } from "../actions/types";
6 |
7 |
8 | const initialState = {
9 | resources: [],
10 | loading: true,
11 | error:{}
12 | }
13 |
14 |
15 | export default function resourcesReducer(state = initialState, action) {
16 | const { type, payload } = action;
17 |
18 | switch (type) {
19 | case ADD_RESOURCE:
20 | return {
21 | ...state,
22 | resources:[...state.resources, payload] ,
23 | loading: false
24 |
25 | };
26 |
27 | case RESOURCE_ERROR:
28 | return {
29 | ...state,
30 | error: payload,
31 | loading: false
32 |
33 | };
34 |
35 | case GET_ALL_RESOURCES:
36 | return {
37 | ...state,
38 | resources:payload ,
39 | loading: false
40 | };
41 |
42 | default: return state;
43 |
44 | }
45 |
46 | }
--------------------------------------------------------------------------------
/src/components/DiscussPostCard.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactMarkdown from 'react-markdown';
3 | import discussIcon from '../assets/icons/discuss.svg'
4 |
5 |
6 | const DiscussPostcard = ({ post: { title, replies, user, avatar, name, text } }) => {
7 |
8 |
9 | return (
10 | {desc}
19 |24 | Start a discuusion thread on any topic and invite people to share their thoughts and ideas. 25 |
26 | 27 | 30 | 31 | 32 | 33 |Be kind and respectful to everyone.
65 |Respect that other people in the community have different life experiences and may have a different perspective than yours
66 |Please do not spam.
67 | 68 |Top makers from the makersclub who are building cool stuff and helping others in the community.
26 |The leaderboard is based on the maker points system. For every activity, a maker is rewarded with following points.
50 | 51 | 52 |Showcase what you built and get constructive feedback from the members of the makersclub.
46 |Start a discuusion thread on a topic and invite people to share their thoughts and ideas.
54 |Share helpful resources. And find them curated at one place for everyone.
66 |
75 |
76 | Maker of themakersclub, I am a Frontend Developer who loves building side projects.
79 | 80 |{makerProfile && makerProfile.bio}
48 |Showcase what you built and get constructive feedback from the community.
52 |54 | A collection of resources shared by members of the makers club. 55 |
56 |{showcasePost && showcasePost.desc}
78 | {/*{feedback.feedback}
153 | 154 |