Code Monkey home page Code Monkey logo

democrapp's Introduction

Democrapp

Register to join the democratic app. Post your ideas and let the people vote if they agree with that proposition or not.

In case the idea would be very popular, there could be intentions to try to make agreements with the respective authorities in charge of those propositions.

Technologies

This repository contains a fron-end(client) and a back-end (server). The first is developed with React and deployed with Netlify and the second is stored in a Heruko server connected to a mongoDB database.

How to run it on local?

**The libraries cited at the end of this document are needed for the app to work. Install them beforehand.**

  • Clone repository.
  • In your root directory start a local database with MongoDb.
  • Go to your_cloned_repository
  • Start server with "yarn start"
  • Start client with "yarn workspace client start"

Server inner workings

Starts a server with express. Some routes are given to it the go through different JS scripts:

  • middleware: authorizes or parse request
  • controllers: manage petitions
  • models: filters and get the data (mongoose)

Things to improve

[] Search bar remove when clicking away or when the input is '' [] CSS: header [] CSS: Home page: center polls (when logged and when not) [] Clicking on a profile should show the profile details [] Refresh elements on page after clicking Against or Agree buttons [] Refresh comments when writting a new one [] Refresh polls when writting a new one [] 'Problem editting your profile': Profile edit is not available, don´t know why [] React to comment button when not logged in [] Creates new user even if there is another one with the same name or email [] Register new user shouldn´t appear if you are logged in [] Comment-edit-button should be blue and inside a form with submit [] Comment-boxes should increase in height and cut the text if this is too long [] Maked edit-boxes for polls rather than going to other link [] Responsive for phones [] More content here about the processes involved

Libraries used

  • NodeJS
  • React
  • Yarn
  • MongoDB
  • Heroku
  • Netlify
  • jsonwebtoken (jwt)
  • mongoose
  • dotenv
  • cors
  • express
  • body-parser

democrapp's People

Contributors

a-mar-se avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.