Skip to content

Pplum09/django-rest-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Rest Base

Table of Contents

About The Project

Swagger view I always start every django project by configuring some swagger documentation and adding a user view and serializer. This repository serves as a base project that can be cloned and installed with all of these things already set up.

Built With

Getting Started

Prerequisites

python3, pip, and virtualenv are needed to get started. All three of these should come with the latest installation of python.

Installation

  1. Clone the repo
git clone https://github.com/pplum09/django-rest-base.git
cd django-rest-base
  1. Create python virtual environment
python3 -m venv venv
source venv/bin/activate

Run source venv/bin/activate from the project directory any time you want to start developing. Use command deactivate to exit out of the python virtual environment.

  1. Install dependencies
pip3 install -r requirements.txt
cd api
  1. Migrate the database
python manage.py migrate
  1. Create superuser
python manage.py createsuperuser
  1. Run server
python manage.py runserver

Your base app should now being running at http://localhost:8000 Swagger docs are at http://localhost:8000/swagger/

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

License

Distributed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages