Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
/ venue-mapper Public archive

Early portfolio stage project for reviewing city venues [deprecated]

Notifications You must be signed in to change notification settings

zatarx/venue-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov

HappyKh Project Setup (for unix systems)

Supported platforms: Linux, MacOS

Preinstalled Software Requirements

  • Install npm locally:
$ sudo apt-get update
$ sudo apt-get install nodejs
$ sudo apt-get install npm

Download HappyKh Project locally

Clone HappyKh project locally using git utility:

$ git clone https://github.com/Formeme/HappyKh.git
$ cd HappyKh

Local Deployment

Django Server Setup

Create Python Virtual Environment with the name of venv in the root folder (you can use python3.6+) and apply it:

$ python3.6 -m venv venv
$ source venv/bin/activate

Configure Python Virtual Environment using file requirements.txt:

$ pip install -r happykh/requirements.txt

Run Django Development Server:

$ cd happykh
$ python3 manage.py runserver

Django Server Setup in PyCharm

  1. Click the Edit Configuration button and create new Django Server
  2. Add new Django Server using "+" button
  3. Add new Environment Variable (environment variables are separated by semicolon): DJANGO_SETTINGS_MODULE=happykh.settings
  4. Setup Python interpreter

Pytest in PyCharm Configuration

  1. Click the Edit Configuration button and add Python test -> pytest
  2. Add new Environment Variable (environment variables are separated by semicolon):
  3. Setup Python interpreter DJANGO_SETTINGS_MODULE=happykh.settings
  4. Edit Working Direсtory input field

Vue.js Server Setup

In HappyKh root folder go to the frontend folder:

$ cd frontend
$ npm install

After npm installation run command in order to launch the client server:

$ npm run serve

Database Setup

Install Postgresql db:

sudo apt-get install postgresql postgresql-contrib

Log into an interactive session:

sudo -u postgres psql

Create database and user localuser:

CREATE DATABASE happykh;
CREATE USER localadmin WITH PASSWORD 'localpassword';

Give your database user access rights to the database:

ALTER ROLE localadmin SET client_encoding TO 'utf8';
ALTER ROLE localadmin SET default_transaction_isolation TO 'read committed';
ALTER ROLE localadmin SET timezone TO 'UTC';
ALTER USER localadmin CREATEDB;
GRANT ALL PRIVILEGES ON DATABASE happykh TO localadmin;
\q

Environment Variables Description

Django Environent Variables

SENDGRID_API_KEY - WebAPI key is mandatory for sending email

EMAIL_HOST_USER - mailbox which will be used to send email from to other users

EMAIL_ENCODING_KEY - WebAPI key is mandatory for sending and changing an email

HASHID_FIELD_SALT - WebAPI key is mandatory for cyphering user id

DJANGO_SETTINGS_MODULE - the variable is mandatory for specifying Django settings

Vue.js Environent Variables

VUE_APP_GOOGLE_API - WebAPI key is mandatory for connecting to the Google API maps service

Project Styleguides

About

Early portfolio stage project for reviewing city venues [deprecated]

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published