GithubHelp home page GithubHelp logo

django_rest_api_for_community's Introduction

Django_REST_API_for_community

This is Django Project to provide the rest API for Community Feature.

Current Project use the Python/Django with several Django Pakages.

Install Guide.

  1. Environmental settings

Check the Python version. If you do not have Python version 3.x, install it. $ python --version $ python3 --version

Then install virtualenv to set up the virtual environment. $ apt-get install virtualenv

Once the virtualenv installation is complete, create a virtual environment for learning. $ virtualenv -p python3 rest_env

When the virtual environment is created, the virtual environment is activated. If (rest_env)it worked, it will be placed in front of the terminal input window . $ source ~/rest_env/bin/activate

Then install the necessary Django and Python libraries. $ pip install django $ pip install djangorestframework $ pip install -U drf-yasg $ pip install flex

  1. Run Django Project.

Now you have to move to project directory.

Migrate the database. $python manage.py makemigrations $python manage.py migrate

Then Run server. $python manage.py runserver

  1. Checking the api list

And you can check the api list on http://localhost:8000/api/v1 http://localhost:8000/swagger/v1 http://localhost:8000/redoc/v1

Question, User, Answer Model(database) are related each other. So we can get related data from api.

Also you can manage them the admin page. For that, you have to create the superuser. $python manage.py createsuperuser then will be required username, email, password.

And then you can run server again. Then visit admin panel. http://localhost:8000/admin

django_rest_api_for_community's People

Contributors

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