Coder Social home page Coder Social logo

embercs15 / pollu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kl13nt/pollu

0.0 1.0 0.0 1.5 MB

Delightful anonymous polls a click away!

Home Page: https://pollu.vercel.app

License: GNU General Public License v3.0

JavaScript 88.61% CSS 9.47% HTML 1.92%

pollu's Introduction

Pollu

πŸ›°οΈ Pollu

Pollu is an open-source straw poll platform built with privacy in mind! πŸš€

It doesn't store your voters personal data, does its best to prevent duplicate and spam votes, and responds as fast as spawning a node js process. A single-language stack makes it easier for JavaScript to contribute. I tried my best to keep the codebase simple and straight forward.

Pollu

πŸš€ Quick start

This project uses the following stack:

  1. Install required packages I use Yarn, so the installation command is yarn or yarn install.

  2. Start developing on the frontend Navigate into the cloned repo directory and start it up.

    cd pollu
    yarn dev
  3. Start developing on both (backend and frontend) Navigate into the cloned repo directory and start it up.

    cd pollu
    vercel dev

⚠️ To develop the backend you need a running local mongodb instance.

  1. Open the source code and start editing!

    Pollu is now running at http://localhost:3000 and the API is running on http://localhost:3000/api/v1!

🧐 What's inside?

A quick look at the top-level files and directories you'll see in this project.

.
β”œβ”€β”€ .next
β”œβ”€β”€ .storybook
β”œβ”€β”€ .vercel
β”œβ”€β”€ api
β”œβ”€β”€ models
β”œβ”€β”€ node_modules
β”œβ”€β”€ pages
β”œβ”€β”€ public
β”œβ”€β”€ src
  1. /.next: This directory is produced by Nextjs for development purposes.

  2. /.storybook: This directory includes configuration files for Storybook.

  3. /.vercel: This directory (produced after you init your project with the vercel CLI) is used to store important information related to the deployed site. If you're contributing to the main website at pollu.vercel.app then you won't need this folder.

  4. /api: This directory contains all API serverless functions.

  5. /models: This directory contains all Mongoose models.

  6. /node_modules: This directory contains all installed packages.

  7. /pages: This directory contains all frontend pages, SSG'ed and SSR'ed.

  8. /public: This directory contains all files you wish to turn up in the production website output.

  9. /src: This directory will contain all of the code related to what you will see on the front-end (what you see in the browser) such as React components, Storybook stories, and styling. src is a convention for β€œsource code”.

  10. /utils: A few abstractions used across both frontend and backend.

You should also have a .env at the root project directory that has two keys: [DB_PATH, DB_NAME] for the DB connection to be established correctly. This file must not be pushed to version control.

⚠️ I use prettier and eslint to manage style in this repo. Make sure you install them accordingly to save development time and make sure your contributions are compatible.

⚠️ I use the Angular commit message format so make sure you follow that when contributing.

πŸ’« Deploy

Deploy with Vercel

βœ‹ Wish to Contribute?

I'm are open to all kinds of contributions. If you want to:

πŸ€” Suggest a feature
πŸ› Report an issue
πŸ“– Improve documentation
πŸ‘©β€πŸ’» Contribute to the code

You are more than welcome. Before contributing, kindly check the guidelines.

pollu's People

Contributors

kl13nt avatar

Watchers

James Cloos 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.