Giter Site home page Giter Site logo

secret_notes's Introduction

Secret Notes

This project is a clone of privnote. I did not like how a few things work with privnote so I decided to make my own version of it

Here's how this website is different than privnote:

  • You can set the title of the note
  • You can set how many reads are allowed
  • You can set any time of expiry
  • You can set the amount of reads as well as expiry time on the same note
  • Note is not destroyed if the person enters a wrong password

Demo

Deploy Development

Deploy the docker-compose.yml file

docker-compose -f docker-compose.yml up -d

Run Migrations

docker-compose -f docker-compose.yml exec web python manage.py migrate

Access on http://localhost:8000 or http://127.0.0.1:8000

Deploy Production

Copy .env.dev to .env.prod file and change sensitive information Information to Change:

  • Change DJANGO_DEBUG to 0
  • Change DJANGO_SECRET_KEY using https://djecrety.ir/
  • Change DB_PASSWORD and POSTGRES_PASSWORD to something secure (both values should be the same)

Deploy the docker-compose.yml and docker-compose.prod.yml file

docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d

Run Migrations and Collect Static Files

docker container exec -it secret_notes_web_1 bash

Inside docker container, run

python manage.py migrate
python manage.py collectstatic

Note

Django does not server static files in production, you need to serve the staticfiles/ folder at /static/ using nginx or any other web server

secret_notes's People

Contributors

roushikk avatar dependabot[bot] 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.