Skip to content

Commit

Permalink
API Secrets migrated to AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajbelsare committed Jan 9, 2024
1 parent eb5d86d commit f42a4e3
Show file tree
Hide file tree
Showing 74 changed files with 1,136 additions and 903 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/frontend/node_modules
/.pnp
.pnp.js

Expand All @@ -20,4 +20,6 @@

npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn-error.log*
/backend/auth/auth/secrets.py
/.env
3 changes: 3 additions & 0 deletions .idea/aws.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/sqldialects.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes
File renamed without changes
File renamed without changes
8 changes: 0 additions & 8 deletions backend/.idea/.gitignore

This file was deleted.

28 changes: 0 additions & 28 deletions backend/.idea/backend.iml

This file was deleted.

6 changes: 0 additions & 6 deletions backend/.idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

4 changes: 0 additions & 4 deletions backend/.idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions backend/.idea/modules.xml

This file was deleted.

13 changes: 0 additions & 13 deletions backend/Pipfile

This file was deleted.

76 changes: 0 additions & 76 deletions backend/Pipfile.lock

This file was deleted.

File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions backend/auth/accounts/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions backend/auth/accounts/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class AccountsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'accounts'
40 changes: 40 additions & 0 deletions backend/auth/accounts/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Generated by Django 4.1.10 on 2024-01-01 13:26

from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('password', models.CharField(max_length=128, verbose_name='password')),
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
('email', models.EmailField(max_length=255, unique=True, verbose_name='Email')),
('first_name', models.CharField(max_length=200)),
('last_name', models.CharField(max_length=200)),
('age', models.PositiveIntegerField()),
('gender', models.CharField(max_length=200)),
('address', models.CharField(max_length=600)),
('preferred_lang', models.CharField(max_length=200)),
('company', models.CharField(max_length=200)),
('job_title', models.CharField(max_length=200)),
('industry', models.CharField(max_length=400)),
('experience', models.IntegerField()),
('is_active', models.BooleanField(default=True)),
('is_admin', models.BooleanField(default=False)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
],
options={
'abstract': False,
},
),
]
Empty file.
1 change: 0 additions & 1 deletion backend/auth/models.py → backend/auth/accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def create_user(
industry,
experience,
password=None,
password2=None,
):
"""
Creates and saves a User with the given email, name, tc and password.
Expand Down
22 changes: 22 additions & 0 deletions backend/auth/accounts/serializers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from djoser.serializers import UserCreateSerializer
from django.contrib.auth import get_user_model

User = get_user_model()


class UserCreateSerializer(UserCreateSerializer):
class Meta(UserCreateSerializer.Meta):
model = User
fields = ('email',
'first_name',
'last_name',
'age',
'gender',
'address',
'preferred_lang',
'company',
'job_title',
'industry',
'experience',
'password',
)
File renamed without changes.
3 changes: 3 additions & 0 deletions backend/auth/accounts/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.shortcuts import render

# Create your views here.
75 changes: 0 additions & 75 deletions backend/auth/admin.py

This file was deleted.

6 changes: 0 additions & 6 deletions backend/auth/apps.py

This file was deleted.

Empty file added backend/auth/auth/__init__.py
Empty file.
Loading

0 comments on commit f42a4e3

Please sign in to comment.