Skip to content

thecoducer/daily-bytes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Daily Bytes

An online diary app where you can write whatever you wish and everything gets saved on the cloud.

Objective

To learn the Django framework

Built with

Plug-ins / Add-ons used

Hosted on

Screenshots

Landing page

Sign in

Home

Add entry

App is live at

dailybytes.herokuapp.com

Getting Started

Download and run the project

Installation

  1. Clone the repo git clone https://github.com/thecoducer/daily-bytes.git
  2. cd daily-bytes
  3. Create a virtual environment in Python: virtualenv -p python3 env
  4. Activate env: source env/bin/activate
  5. Install the requirements: pip3 install -r requirements.txt

Set up the environment variables

Create a .env file at the root of the directory and paste the below snippet in it and add your own credentials wherever required.

SECRET_KEY = 3s@8*%rpq13e03-5-_(9ow^*9f&c5rar(5wr%vhs=_k16@(r3i

SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = <get one from Google developers console>
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = <get one from Google developers console>

SOCIAL_AUTH_KEY = <get one from Google developers console>
SOCIAL_AUTH_SECRET = <get one from Google developers console>

EMAIL_HOST_USER = <your email id>
EMAIL_HOST_PASSWORD = <your regular/app-specific password>

DEBUG = True

TIME_ZONE = <your time zone>

ALLOWED_HOSTS = localhost, .herokuapp.com, https://dailybytes.herokuapp.com, https://dailybytes.herokuapp.com/, http://dailybytes.herokuapp.com, http://dailybytes.herokuapp.com/

Running the app

  • Create the database: python manage.py migrate
  • Create admin account: python manage.py createsuperuser
  • Run the app: python manage.py runserver

Improvements

Check this list

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. Go ahead and fork the project.

License

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

Contact

Twitter: @thecoducer or Email: [email protected]