Coder Social home page Coder Social logo

paymentsapi's Introduction

PaymentsAPI

Hi, this is my first API, I worked out a lot ๐Ÿ˜Œ

Cloning

If you want to clone this first:

$ git clone [email protected]:maby200/PaymentsAPI.git

Required packages

For this repo you'll need the packages listed in requirements.txt.
Dont rush into the installation!

  1. First, create a new environment
$ virtualenv env
  1. Activate the environment (I'm using Linux)
$ source env/bin/activate
  1. (notice the (env) which means your environment is active)
    Now we're ready to install the packages in requirements.txt
(env) $ pip install -r requirements.txt
  1. With that done, you're set up to run the project
(env) $ python manage.py runserver

Creating an account

Once your project is running, open it in your browser with the url: http://127.0.0.1:8000/.
I recommend you to:

  1. Go and create an account in: http://127.0.0.1:8000/users/signup/
  2. Then go to http://127.0.0.1:8000/users/login/, login with the email and password you've chosen and
  3. Copy the access token it apears on the page after successfuly login.

You can use Postman, or Thunder Client extension in VSCode to do the GET and POST, unfortunatelly you wont be able to do the entire CRUD since you are not admin.

For a better experience, you can go to http://127.0.0.1:8000/api/schema/redoc/ or http://127.0.0.1:8000/api/schema/swagger-ui/

Useful links:

paymentsapi's People

Contributors

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