Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kalvincalimag/django-nextjs-jwt-starter
An example setup integrating Django REST Framework, React/NextJS, and JWT Authentication for your development needs
https://github.com/kalvincalimag/django-nextjs-jwt-starter
django django-rest-framework javascript jwt jwt-authentication nextjs python
Last synced: about 1 month ago
JSON representation
An example setup integrating Django REST Framework, React/NextJS, and JWT Authentication for your development needs
- Host: GitHub
- URL: https://github.com/kalvincalimag/django-nextjs-jwt-starter
- Owner: kalvincalimag
- License: bsd-3-clause
- Created: 2024-08-22T00:28:45.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-23T09:46:29.000Z (6 months ago)
- Last Synced: 2024-11-08T07:45:50.550Z (3 months ago)
- Topics: django, django-rest-framework, javascript, jwt, jwt-authentication, nextjs, python
- Language: Python
- Homepage:
- Size: 74.2 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django-nextjs-jwt-starter
A sample setup integrating Django REST Framework, React/NextJS, and JWT Authentication for your development needs.
## Demo
#### Main
![demo-1](https://res.cloudinary.com/dotera808/image/upload/v1724405550/Demo-1_tbvd6a.gif)
#### Admin
![demo-2](https://res.cloudinary.com/dotera808/image/upload/v1724405550/Demo-2_keiyxj.gif)
## Setup
Clone the repo
```
$ git clone https://github.com/kalvincalimag/django-nextjs-jwt-starter.git
```
### Setup Backend (Django)
First, create a `.env` file in the root of the backend folder & add your Django secret key:
```
DJ_SECRET_KEY=
```
For generating a key, refer [here](https://www.makeuseof.com/django-secret-key-generate-new/).
Enter Directory
```
cd backend
```
Install dependencies:
```
pip install -r requirements.txt
```
Set up the database:
```
python manage.py makemigrations
python manage.py migrate
```
Run server:
```
python manage.py runserver
```
### Setup Frontend (NextJS)
Enter directory
```
$ cd frontend
```
Install dependencies
```
npm install
```
Run the app
```
npm run dev
```
## Contact
### Let's connect
- Twitter [@kalvincalimag_](https://twitter.com/kalvincalimag_)
### If you find this project helpful, please consider giving it a ⭐.
[⭐](https://github.com/kalvincalimag/django-nextjs-jwt-starter) this repo or follow me on:
- Github [@kalvincalimag](https://github.com/kalvincalimag)
- Medium [@kalvincalimag](https://medium.com/@kalvincalimag)
## License
[BSD](LICENSE.md) @kalvincalimag