Skip to content

nashville-software-school/rock-of-ages-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django REST API - Rock of Ages

Notes

There are no views, models, or serializers in this boilerplate project. The only code that is included is the ability to register and login. The urls.py file already imports the required functions from views/auth.py.

Getting Started

  1. Clone this repository and cd to the project directory
  2. Run pipenv shell
  3. Run pipenv install
  4. Run python3 manage.py migrate to create the default Django tables in your database
  5. Open the project directory in VS Code
  6. Press SHIFTP (Mac), or CtrlSHIFTP (Windows) to open the Command Palette, and select "Python: Select Interpreter".
  7. Search for "rock" and select the interpreter that starts with those characters. There should only be one to choose from.
  8. Start the debugger
    1. Mac: Shift+Option+D
    2. Windows: Shift+Alt+D
  9. Verify that the process starts with no exceptions
  10. Open Postman and create a POST request to http://localhost:8000/register with the following JSON body and verify that you can create a new user and get a token in the response body -
    {
       "email": "[email protected]",
       "password": "straytor",
       "first_name": "Admina",
       "last_name": "Straytor"
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages