mojavad / Address.io

An Address Book web app created with React and a Flask API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo

This project is built with React, and uses a Flask Server as a REST API to store the data in a locally stored SQLlite database.

The user can add, edit, and remove people to the address book. They can also add, edit, and remove organisations. They are also able to optionally assign each person to an organisation.

Screenshot

Here are the steps to getting this up and running.

Instructions:

After cloning the repo, you will need to set up both a Flask Server that will be running for the REST API, and you'll need to set up a live server for React. You will need to have Python, pip, and npm installed on your PC.

Setting up Flask Server:
  1. Set up a Python virtual environment in the api folder. Virtual environment needs to be install with pip. This can be done with:
python3 -m pip install --user virtualenv (UNIX)
py -m pip install --user virtualenv (WINDOWS)
  1. You will then need to create a virtualenv in the Addressio/api directory:
python3 -m virtualenv env (UNIX)
py -m virtualenv env (WINDOWS)
  1. After that is done, you need to activate the virtualenv:
source env/bin/activate (UNIX)
.\env\Scripts\activate (WINDOWS)
  1. After activating the virtual environment, you need to install all the dependancies:
pip install -r requirements.txt
  1. You can then start the server by running this python command:
python3 run.py
py run.py
Setting up React Live Server:
  1. Change your directory and go into the Addressio/app directory:
npm install 
  1. After it is done downloading the dependancies and setting up the server, run:
npm start

And it should be up and running. :)

About

An Address Book web app created with React and a Flask API.


Languages

Language:JavaScript 61.4%Language:Python 31.6%Language:HTML 3.7%Language:CSS 2.2%Language:Mako 1.2%