- Frontend: HTML/CSS
- Backend: Django
- Fork it :
Get your own Fork/Copy of repository by clicking Fork
button right upper corner.
- Clone:
$ git clone https://github.com/harsh-9in/Blogger.git
$ cd Blogger/mysite
- Branching
$ git checkout -b [your_branch_name]
- Make Changes in Source Code
- Create a Virtual Environment
python3 -m venv env
-
Activate the Virtual Environment
- On Windows
env\Scripts\activate
- On Linux or MAC
source env/bin/activate
- On Windows
-
Install dependencies using
pip install -r mysite/requirements.txt
- Setting up mandatory file
A .env.example file is present in the mysite folder you have to copy the content of .env.example and paste it into
.env file (a file to be made in the same folder as .env.example file) so that settings.py file take all the
configurations from .env file.
- Make migrations using
python manage.py makemigrations
- Migrate Database
python manage.py migrate
- Create a superuser
python manage.py createsuperuser
- Run server using
python manage.py runserver
- Stage your Changes and Commit
# For adding/Staging Changes
$ git add .
# For Commiting Changes
$ git commit -m "<your commit message>"
- Push your Commit to Repo
$ git push origin <branch_name>
/
|- .github
|- mysite : Project Directory
|ββββ|- blog : Application for the blogs
|ββββ|ββββ|- migrations : Contains files that helps us to make the changes to the database schema as per the changes done in the models.
|ββββ|ββββ|- static : All the static assets for the blog application
|ββββ|ββββ|- templates : All the application specific templates
|ββββ|ββββ|- __init**.py
|ββββ|ββββ|- admin.py : In this we register the models with the Django admin application
|ββββ|ββββ|- apps.py : In this we register/configure all the common files for the app
|ββββ|ββββ|- forms.py : Contains all the forms for the app
|ββββ|ββββ|- models.py : Contains all the models for the app
|ββββ|ββββ|- tests.py : Contains all the tests for the app
|ββββ|ββββ|- urls.py : Contains all the urls which are specific for the app
|ββββ|ββββ|- views.py : Contains all the views for the app
|ββββ|- media : The media files related to the blogs and users
|ββββ|- mysite : Python project package
|ββββ|ββββ|- __init**.py
|ββββ|ββββ|- asgi.py : Entry point for the ASGI servers
|ββββ|ββββ|- settings.py : All the configurations for your project
|ββββ|ββββ|- urls.py : All the URLs for the Django project
|ββββ|ββββ|- wsgi.py : Entry point for the WSGI servers
|ββββ|- staticfiles : To keep the static assets like images, CSS, JavaScript
|ββββ|- users : Application for users
|ββββ|ββββ|- migrations : Contains files that helps us to make the changes to the database schema as per the changes done in the models.
|ββββ|ββββ|- templates : All the application specific templates
|ββββ|ββββ|- __init__.py
|ββββ|ββββ|- admin.py : In this we register the models with the Django admin application
|ββββ|ββββ|- apps.py : In this we register/configure all the common files for the app
|ββββ|ββββ|- backends.py : Contains the backend specific authentication functions
|ββββ|ββββ|- forms.py : Contains all the forms for the app
|ββββ|ββββ|- models.py : Contains all the models for the app
|ββββ|ββββ|- tests.py : Contains all the tests for the app
|ββββ|ββββ|- views.py : Contains all the views for the app
|ββββ|- db.sqlite3 : Database file created when you run the migrate command
|ββββ|- manage.py : A command line utility
|ββββ|- Procfile : A file required for the Heroku Web applications to define the applications process types and entry points
|ββββ|- requirements.txt : Contains all the modules and libraries required for the project.
|ββββ|- runtime.txt : specify the Python runtime
|- .gitignore : Contains all the files and folders which needs to be ignored while pushing the code to the Git
|- CODE_OF_CONDUCT.md : Code of Conduct to be followed
|- CONTRIBUTORS.md : See the contributors of the project
|- LICENSE.md : See the License
|- README.md : Read all the instructions releated to the project
- Take a look at the guidelines to contribute to the project
- CONTRIBUTING GUIDELINES
Harsh Kumar -Know more
-Kajol Kumari-Know More -Swarnima Shukla-Know More -Sarath Kaul-Know More
- Contributor's Hack 2020 is a program that helps students grow with ""OPEN SOURCE"". This initiative by HakinCodes provides you the best platform to improve your skills and abilities by contributing to vast variety of OPEN SOURCE Projects and opportunity to interact with the mentors and the Organizing Team.
- NWoC (NJACK Winter of Code) is a program by NJACK (The Official Computer Science Club of IIT Patna) that helps students understand the paradigm of Open Source contribution and gives them real world software development experience.
- DWOC is an open source initiative taken by Devscript to help students and learners be acquainted with the different aspects that entail open source contribution. It helps the mentees get a taste of problem solving in the real world.