haripalbaluja / String-to-Binary-Converter

Converts a string to binary digits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rescue Maps

We here at Rescue Maps strive to help those caught in distress situations by creating a network of organizations and people who can share their resources in their proximity for the needy, thus speeding up the overall process of disaster relief

Getting Started

Clone the repository into your system by browsing to this repository ...

Prerequisites

npm
Linux System
Django 2.1
Postgresql
Python
d3.js - A javascript library
Leaflet.js

Installing

  1. Install leaflet using
$ npm install leaflet
  1. Install the d3 package via npm
npm install d3
npm install d3-hexbin
npm install leaflet
  1. To install Postgresql
   $ sudo apt-get update
   $ sudo apt-get install python3-pip python3-dev libpq-dev postgresql postgresql contrib
  1. Log into an interactive Postgres session by typing:
$ sudo -u postgres psql
  1. Create DATABASE using
postgres=# CREATE DATABASE flood_data;
  1. Next, we will create a database user which we will use to connect to and interact with the database.
postgres=# CREATE USER flood_user WITH PASSWORD 'Aezakmicar1';
  1. To connect with the Postgresql database, follow this guide here

  2. Now, when creating a USER for the database, match the database name, username and password from DATABASE Section in the settings.py file

  3. For python 3, install virtual environment using

sudo pip3 install virtualenv
  1. Move into the directory of the cloned django project
 cd ~/(project_name)
  1. create a virtual environment to store our Django project's Python requirements by typing:
$ virtualenv myprojectenv
  1. Activate virtual environment using
$ source myprojectenv/bin/activate
  1. you can install Django with pip
$ pip3 install django
  1. Install the psycopg2 package
$ pip install django psycopg2

Starting the project

  1. Browse to the directory of the project in your terminal

  2. Now you're good to go, fire up the application from

python manage.py runserver

...

About

Converts a string to binary digits


Languages

Language:Python 95.1%Language:HTML 4.9%