Skip to content

MOH-Zambia/pms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRF React & Redux Boilerplate

License: MIT PRs Welcome CircleCI Maintainability

1671452013971

Frontend ⭐

  • Minimal Template with neccessary components✔
  • Configured Redux Store✔
  • Auto formatted with Prettier ✔
  • React with functional components and hooks ✔
  • Forms Validation with Formik ✔
  • Login , example to understand the JWT auth ✔
  • Server Errors Handling✔

Backend🛠

1671452027931

  • Django REST framework for a powerful API ✔
  • Django ORM for interacting with the database✔
  • Authentication With JWT (Register, Sign In) ✔
  • Throttle setup ✔
  • Testing with Pytest ✔
  • Extra password hashers like Argon2PasswordHasher Recommend by official django docs. ✔

Motivation 🎯

  • A quickstart django react boilerplate with updated dependecies to start with react project.
  • Material UI usage⭐

How to Run locally 🚀

Backend

  • Install requirements after creating and activating virtual environement

    $ pip install -r requirements/local.txt

  • Currently SQLite is configured, you can change it with any other as well. Then run

    $ python manage.py makemigrations $ python3 manage.py migrate

    To run tests: $ pytest

    API Documentation will be available at http://localhost:8000/api/v1/schema/redoc/

    Admin available athttp://localhost:8000/admin/

Frontend

- Install dependencies in frontend app using following commands in separate terminal
- First make sure you have installed Node.js, v18.12.1. while upgrading this setup.

For More info https://nodejs.org/en/

- Then run following commands in frontend dir

$ yarn install
$ yarn start

-  React app available at`http://localhost:3000/`

👉 Github Pages

⭐️ Support

Give a ⭐️ if this project helped you!

License ©

The MIT License

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published