Git Product home page Git Product logo

harishseeker / did-coding-mega-project-including-prod-deployment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bobby-didcoding/build-and-deploy-dockerised-django-app-handbook

1.0 0.0 0.0 2.09 MB

bobby's mega project from his udemy course showing the full end to end setup including production grade deployment.

License: GNU General Public License v3.0

JavaScript 15.60% CSS 13.10% HTML 71.11% Dockerfile 0.20%

did-coding-mega-project-including-prod-deployment's Introduction

Building a Production-Ready Django Project with a Digital Resume and Shop

Background

Welcome to our comprehensive course on building a fully functional and production-ready Django project! This course is designed to provide you with a step-by-step guide through the entire process of creating a robust web application โ€“ a Digital Resume with an integrated lightweight shop โ€“ that will be ready for deployment and accessible to the public.

Course Overview

In this hands-on course, we will delve into the world of Django, one of the most popular and powerful web development frameworks, to build a feature-rich web application that showcases your skills, experience, and achievements in a digital resume format. Additionally, we will incorporate a lightweight shop to offer products or services, enhancing the overall functionality and user experience.

Prerequisites

Repository

  1. Navigate to your development directory and open a terminal.
  2. Clone the development repository:
    git clone -b 00-start https://github.com/bobby-didcoding/build-and-deploy-dockerised-django-app-handbook.git .
    

Setup

We need a new .env file to store our project secrets and api keys.

#Unix and MacOS
cp env_template .env

#windows
copy env_template .env

Build Docker images

Use the following command to build the docker images:

Make sure Docker is running on your machine!

  1. Open a terminal on your machine.

  2. Optional step! Prune docker. You may want to prune un-used Docker images and containers.

    docker system prune
    
  3. Fire up a dev Docker container.

    Note: you may want to prune un used Docker images and containers

    docker-compose up -d --build
    

Finished

You should now be up and running!

Note: Open an incognito browser when testing your project (Ctrl + Shift + N)

Helpful Docker stuff

You can run Django commands as normal by accessing the Django app image.

The following example display all files in the container

docker exec -it app bash
ls
exit

The following example will rebuild one container

docker-compose -f up -d --no-deps --build app

Next step

Each branch has its own LECTURE_OVERVIEW.md file that describes what we will cover during the lecture.



did-coding-mega-project-including-prod-deployment's People

Contributors

bobby-didcoding avatar

Stargazers

 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.