Giter Club home page Giter Club logo

notificationservice's Introduction

Mailing list app

Setup

The first thing to do is to clone the repository:

https://gitlab.com/testtask8/Notification.git
cd Notification

Create a virtual environment to install dependencies in and activate it:

py -m venv notifEnv
notifEnv\Scripts\active

Then install the dependencies:

(notifEnv) pip install -r requirements.txt 

Note the (notifEnv) in front of the prompt. This indicates that this terminal session operates in a virtual environment set.

Before migrate command, we need setup .env file in core directory. This directory also contains an example of a completed .env file.

After setup .env. Go to the root directory and run migration:

cd notifications
python manage.py migrate

Now we can run project:

python manage.py runserver
python -m celery -A core worker -l info -P eventlet
celery -A core beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler

Note that eventlet params specific only for Windows system.

Note that you have to run redis-server yourself by specifying port and host in the .env file.

And navigate to http://127.0.0.1:8000/docs/.

Additional tasks

The following additional tasks were performed:

  • Organize testing code. (Step 1)
  • To open the page with Swagger UI at /docs/ and display the description of the developed API. (Step 5)
  • Implement an additional service that once a day sends statistics on processed mailings to email. (Step 8)

notificationservice's People

Watchers

Bol4onok 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.