GithubHelp home page GithubHelp logo

manishprivet / electify Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 10.0 1.31 MB

Create Private and Anonymous Elections Instantly and Unlimited. No need to Sign UP

Home Page: https://electify.manishk.dev

License: MIT License

JavaScript 2.00% TypeScript 98.00%
vercel elections nextjs dynamodb hacktoberfest hacktoberfest2021

electify's Introduction

This is a Next.js + Vercel Project.

Maintenance GitHub last commit Website David GitHub repo size GitHub GitHub package.json dependency version (prod)

forthebadge made-with-typescript

ForTheBadge uses-html ForTheBadge uses-git ForTheBadge uses-css

ForTheBadge built-with-swag

Prelimanry Steps

Clone the repo and touch following files at the root directory:

/.env.local

credentials.env should contain the credentials of Database and Service Client ID of Gsuite Service account in following format.

AWS_ID="AWS_IAM_ID"
AWS_KEY="AWS_IAM_SECRET_ACCESS_KEY"

All Credentials have been stored in Verce deployment already.

installation

npm i -g vercel
npm i

Getting Started

vercel dev

Open http://localhost:3000 with your browser to see the result.

Deployment

The project is deployed on Vercel and available at electify.manishk.dev.

Developer Information

This project has been developed, designed and deployed by Manish Kumar.

Reach me out:

Portfolio
Github
Linkedin
Facebook
Instagram
Twitter

electify's People

Contributors

amanpachori avatar dependabot[bot] avatar imgbotapp avatar manishprivet avatar sejaljain123 avatar sonuishaq67 avatar wilsantow avatar wsameer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

electify's Issues

Add description per page

For SEO, the site description is given by two tags generally

<meta property="description" content="A Description">
<meta property="og:description" content="A Description">

Right now, there's one common description at pages/_document.tsx, and that too only of og:description.

Remove that and add separate relevant description for each page, e.g. index.tsx, create.tsx, vote/index.tsx, vote/[id].tsx, etc.

Fix footer link to correct one

Right now, the link on the footer links to manishprivet.github.io which is a dead link.

image

Change it to https://manish.codes

/create returns 500

Upon creating an election with the following payload, the election doesn't get created

{
  "display_name": "new election",
  "election_name": "id",
  "no_of_voters": "3",
  "candidates": [
    {
      "name": "can 1"
    },
    {
      "name": "can 2"
    }
  ],
  "auth_type": "secret",
  "emails": "",
  "gsuite_domain": ""
}

Instead, I get a 500 error with the following response

A server error has occurred

FUNCTION_INVOCATION_FAILED

Upgrade to Next js 11

We need to upgrade the Next.js version to the latest one, which is 11.1.2

We already have #18 for this, but the build seems to be failing due to some issues.

Add title and meta tags for each page and layout

Right now, apart from the homepage, the <title> tag is nowhere present on the website.
Add them to each and every page... You can see an example of how it's done in pages/index.tsx

image

Also, apart from the title, many tags like description and such are common for each page, which are present in pages/_document.tsx... Move the <link rel='icon'... from index.tsx to there

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.