Coder Social home page Coder Social logo

newsletter_app's Introduction

Newsletter App

By Sudharsan Ananth

Table of Contents
  1. About this Project
  2. Dependencies
  3. Prerequisites
  4. How to run
  5. License

About this Project

This repo contains a code to enter email for newsletter subscription service, the idea of this app is to add emails to mysql serve in the background. Any user(email) can be subscribed only once, if someone who is already subscribed to a newsletter is trying to subscribe again, a pop up will tell the user to contact customer care. This simple demo only simulates data entry and recovery from SQL into a front-end(streamlit).

Demo

Img_output_demo

Dependencies

This project is built with the below given major frameworks and libraries. The code is primarily based on python.

Prerequisites

conda environment is ideal for creating environments with the right packages. Pip is required to install the dependencies.

Or

Run the code

Docker compose is the easiest way to run this. If not you will have to setup the mysql server along with

Method 1 - Using Docker

  1. Clone the repository using

    git clone https://github.com/sudharsan-007/newsletter_app.git
  2. Run docker-compose

    docker-compose up --build

Method 2 - Using mySQL and Python

  1. Install pre-requisites Conda, pip, python, and mySQL and clone this repo

  2. Comment out db_config for Docker (line ~20) and configure db_config based on your mysql setup (password, username and database variables)

  3. Install Dependencies in a conda environment

    conda create -n "newsletter_app" python=3.8
    conda activate newsletter_app
    python3 -m pip install -r requirements.txt
  4. Run the app

    streamlit run app.py
    
  5. Play with the code and enjoy

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

newsletter_app's People

Contributors

sudharsan-007 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.