Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

roushikk/secret_notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 8, 2021
f4007d7 · Dec 8, 2021

History

34 Commits
Dec 8, 2021
Dec 8, 2021
May 21, 2021
Dec 8, 2021
Mar 22, 2021
Dec 8, 2021
Dec 8, 2021
Dec 8, 2021
Dec 8, 2021
Dec 8, 2021
Dec 8, 2021
Dec 8, 2021
May 21, 2021
Mar 22, 2021
Dec 8, 2021

Repository files navigation

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:

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages