Skip to content

baidyprod/Baidygram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baidygram

Instagram-like blog created by baidy.

Note: the project is both production and development ready.

Stack:

  • Django
  • SQLite
  • Celery
  • Redis
  • Bootstrap
  • jQuery, ajax
  • Flake8
  • Debug toolbar (For SQL queries optimization)
  • Whitenoise (For production)
  • Gunicorn (For production)
  • Google Cloud (For production)

Interesting features:

  • Avatars/posts aspect ratio and size limitations
  • Fully working email sender (E.g. new comment notification for admin with link on the comment in admin page)
  • Pop-up "Contact us" window
  • Optimised both for mobile and desktop use

Screenshots:

Let's register an account and create two posts

picture alt

Admin receives a new post notification on email

picture alt

It is the profile page

picture alt

We can open the publication and leave a comment

picture alt

User receives a convenient new comment email notification

picture alt

Admin receives it too, even with the link on the comment admin page!

picture alt

The comment needs to be reviewed and then published by admin

picture alt

Here is also the the admin page to edit posts

picture alt

How the published comment looks like

picture alt

Contact us form is ajax modal and works at the same page

picture alt

Customer support email immediately receive the application email!

picture alt

How to run?

  1. Install redis on your computer
  2. Clone this repository
  3. Create and activate virtual environment
  4. Open terminal in project folder and run these commands:
    pip install -r requirements.txt
    ./manage.py migrate
    (IN THIS STEP BELOW YOU CREATE ADMIN, ENTER EVERYTHING IS ASKED)
    ./manage.py createsuperuser
    ./manage.py runserver
  5. Open second terminal window in project folder and run this command:
    redis-server
  6. Open third terminal window in project folder and run this command:
    celery -A core worker --loglevel=info

That's it! Now you run Baidygram locally! To stop running just press Control+C in each terminal and then easily close them.

Have fun ;)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published