Giter VIP home page Giter VIP logo

sample_project's Introduction

#Steps to run this sample project

1. Create python virtual environment in any folder: ''' python3.9 -m venv my_env , run this command in terminal then --> source/my_env/bin/activate (to activate your environment) '''

2. Clone the following repo in that folder where environment is created: ''' git clone https://github.com/Ashu2ei/sample_project.git '''

3. Switch to sample_project and run following command: ''' pip install -r requirements.txt '''

3. Then Switch to sample_project/sample_project(contains manage.py) and run following commands: ''' python manage.py makemigrations python manage.py migrate python manage.py runserver '''

4. Open your postman and pass these values to url and data to body: ''' http://127.0.0.1:8000/myapi/simple-post/

{ "value_of_x":10, "value_of_y":20 } '''

4. Output will be: ''' { "message": "Data received successfully.", "input_data": { "value_of_x": 10, "value_of_y": 20 }, "output_is": 30 } '''

sample_project's People

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.