Coder Social home page Coder Social logo

social-networking-project's Introduction

Social Networking

An application that allows users to create a profile, post messages, and follow other users.
Report Bug · Request Feature


Contributors Forks Stargazers Issues MaIT License


Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing

About The Project

Some kind of lorem ipsum

Getting Started

Prerequisites

This project is optimized to run on Linux Environments. Tests for Windows and Mac are still in progress.

Installation

After getting a local copy on your system, run the following commands based on your role.

  • Making a new Django Project

    If you are a developer who is just starting with a new project, simply run

    make project

    A prompt will ask you to enter a valid project name before continuing. This command will setup your virtual environment, secret keys and all the basic dependencies required by a django project.

    Note: While developing, it is advisable to enter your virtual environment for proper configuration and better control. To enter a virtual environment, use

    . bin/activate

    To deactivate the environment, simply use deactivate command

    deactivate
    

    Alternatively, if you prefer a finer control over your project creation,you can use the following commands

    • Install all project dependencies and create virtual environment

      make install
    • Make django project using django-admin

      django-admin startproject --template=./etc/structure ${project-name} .

      Replace ${project-name} with the name of Django project as per your wish. Also, you can customize the template for your project,according to your need.

    Note: This directory will now function as your root django folder. Upon creation of a project, a folder named ${project-name} and manage.py will appear at the root.


  • Running an existing Django Project

    If the repository already contains a django project, you can simply install the requirements and run the project.

    To install all the dependencies, use

    make install

Usage

You can use make commands to perform various operations on your django project.

  1. Start django server on port 8000. You can customize it by editing PORT in Makefile.

    make run
  2. Apply database migrations

    make migrate
  3. Clear database records.

    make flush

    Note: Media files will not be deleted using this command

  4. Running Django Testcases

    make test
  5. Check for proper formatting and import style using autoflake, black and isort

    make format

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

social-networking-project's People

Contributors

avishrantssh 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.