Politico enables citizens give their mandate to politicians running for different government offices while building trust in the process through transparency.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the software and how to install them To get the project up and running, you need to have postgresql, nodejs and npm installed on your local machine.
Run the following commands to confirm installations.
node -v
- should display Node version
npm -v
- should display npm version
psql --version
- should display postgresql version
- Clone the repository
git clone https://github.com/kenzdozz/politico.git
- Navigate to the location of the folder
- Run
npm install
to install dependencies - Run
npm start
to get the app started on your local machine
- After installing Postgresql
- To create database with USER
postgres
- Run
psql -c 'create database politico_test;' -U postgres
to create test database - Run
psql -c 'create database politico;' -U postgres
to create main database - Update Database names in .env if different from above
- Run
npm run migrate:up
to create all tables - Running
npm run migrate:down
will drop all tables
Rename .env.example
to .env
and update the variables accordingly
To run the tests, run the command
npm run test
The tests, test the api endpoints to ensure that it works and returns the required data.
- HTML - Hypertext Markup Language is the standard markup language for creating web pages and web applications
- CSS - Cascading Style Sheets is a style sheet language used for describing the presentation of a document written in a markup language like HTML
- JAVASCRIPT - a high-level, interpreted programming language that conforms to the ECMAScript specification
- Nodejs - Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine
- Express - Fast, unopinionated, minimalist web framework for Node.js
- Postgresql - The World's Most Advanced Open Source Relational Database
- JWT - JSON Web Token for aunthentication
- Onah Kenneth - Initial work - Politico
See also the list of contributors who participated in this project.
This project is licensed under the MIT License
- Andela Bootcamp