Git Product home page Git Product logo

chatapp-with-django's Introduction

ChatApp-with-django

1.Basic setup and Running instructions:

PRE-REQUISITES:

  1. Visual Studio cocde
  2. Python3(pip)
  3. git bash(to clone repository)

Open Visual Studio code and open 'New terminal' and navigate to the folder/directory where you want to clone this repository.
After this run the following commands on the terminal.


STEP 1: CLONE REPOSITORY

git clone https://github.com/Rahuldj2/ChatApp-with-django/

(All folders/files in this repository will be cloned into your system).

STEP 2: CREATE VIRTUAL ENVIRONMENT

python -m venv newvirtualenv

Then press ctrl+shift+p on your keyboard to open command palette and navigate to "Python: select interpreter".
Choose the root folder(where you are cloning repository) and choose "Python 3.9.7('newvirtualenv':venv) .\newvirtualenv\bin\python.exe".
Restart VScode and open new terminal. Your terminal should look like this now(the path will vary of course): image

The basic setup is done. Now follow these instructions to run the django project:

STEP 3: RUNNING THE PROJECT

Type this command on the terminal

cd ChatApp-with-django

Now you need to install django in the virtual environment. You can do this by running the command:

pip install django

then to run and view the webpage type:

python manage.py runserver

You will get this output on the terminal: image

Copy and paste the server link starting with https on google chrome to view the web page. A preview is shown below: image

Now you can enter the chat room of your choice! To test the real time chat updates you can open the same link on a different tab and enter the same chat room with different username: image

That is it! Hope you enjoy chatting in this app!


2. Project Description and credits:

ABOUT ME:

I am a novice to the field of web development and this is the first project that I have created. I built this website with the aim to hone my web development skills and to get a first hand experience of building a website using HTML,CSS and DJANGO. I have followed various tutorials to learn web development and I would like to thank freeCodeCamp.org who have guided me to build this website through their tutorials on youtube. (https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ).

HOW TO BUILD THIS PROJECT:

An intermediate understanding of HTML(Hyper text Markup Language), CSS(Cascading style sheets) and Django is the pre-requisite for building this chat app. Some javascript is also used in this project to provide real-time chat messaging updates. HTML and CSS are required to build the front end i.e the structure and styles of the web page, and Django(alongwith sqlLite) is used for the backend i.e for url routing,storing chat data etc.

chatapp-with-django's People

Contributors

rahuldj2 avatar

Watchers

 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.