Skip to content

A backend server prototype for the Algerian's voting system.

Notifications You must be signed in to change notification settings

OGFris/VoteBackend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VoteBackend

A backend server prototype for the Algerian's voting system.

Installation

Requirements:

  • Mariadb v10.x or higher server.
  • Create a .env following the .env.example patterns to configure the server.

Setting up the Mysql server:

# Step 1: Enter the MariaDB Cli
> mysql -u root

# Step 2: Create the databases in command prompt
MariaDB [(none)]> create database votes default character set utf8 default collate utf8_general_ci;

Docs

  • GET:/candidates: this route returns a json array of every candidate stored in the database.

  • POST:/candidate: this route create a new candidate in the database.

About

A backend server prototype for the Algerian's voting system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages