Giter Club home page Giter Club logo

twitter's Introduction

Twitter

Features:

  1. A user can post tweets.
  2. A tweet can have only 140 characters.
  3. A tweet will have date and time of postings.
  4. A tweet will have user associated.
  5. Tweets will be fetched in descending order of posting.
  6. All tweets are public, everyone can see all tweets.
  7. A user has unique email address.
  8. User has a name.
  9. User can soft delete his tweet.
  10. User can update his tweet.

To run this in your local system :

Clone this repo:

git clone https://github.com/saurabhnk-94/twitter.git

Get inside the repo, type this is terminal:

cd twiiter-repo

Create a virtual environment inside the repo:

python3 -m venv .venv

After that activate the virtual environment by typing:

source .venv/bin/activate

Next step is to install all the dependencies into your virtual environment:

pip3 install -r requuirement.txt

Next get into the project directory by typing:

cd Twitter

Type 3 commands in order before for the project to run:

python3 manage.py makemigrations
python3 manage.py migrate

Now to access the admin page before running the server create a superuser:

python3 manage.py createsuperuser
fill the details :
username: <ur choice>
email: <optional>
password: <password>
confirm password: <confirm the password>

After filling all these to run the project:

python3 manage.py runserver

For UI : Get inside the Javascript directory copy the path of home.html and paste it in the browser.

About the project:

My project name is Twitter. My app name is twitter_app. There are 2 classes in my app-models: TweetUser and Tweet TweetUser: It has attributes user_name,email_id and is_deleted(default=false). Tweet: user as a foreign key, tweet_box for the tweet, date created, date_updated and is_deleted(default=false) The ordering will be done through the updated date and time field. Rest API is being used and in that we have used function based view. Partial output of UI is done and is running fine. UI is done using JavaScript and html and also css for styling. Summary: Language: Python - version(3.6.8) Framework: Django - version(2.2.7)

twitter's People

Contributors

saurabhnk-94 avatar

Watchers

James Cloos avatar  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.