Skip to content

centrodph/fullstack-tp

Repository files navigation

Repo

Setup steps

  • yarn front:install

    $ cd client && yarn install

  • yarn server:install

    $ source env/bin/activate && cd api && pip install -r requirements.txt

  • yarn front:start

    $ cd client && yarn dev

  • yarn server:start

    $ source env/bin/activate && cd api && python manage.py runserver

  • yarn server:migrate

    $ cd api && python manage.py migrate

  • yarn server:makemigrations

    $ cd api && python manage.py makemigrations

  • yarn server:createsuperuser

    $ cd api && python manage.py createsuperuser

Development

  • yarn front:start
  • yarn server:start

Login using

  • admin admin

  • User-Interviewer 8kLNEheFS@2M7PT

BackEnd screenshots

  • API

Screen Shot 2022-06-20 at 19 55 06

  • Models

Screen Shot 2022-06-20 at 19 55 15

  • ADMIN

Screen Shot 2022-06-20 at 19 55 28

FrontEnd screenshots

  • login with user/pass

Screen Shot 2022-06-20 at 19 39 38

  • login errors

Screen Shot 2022-07-04 at 14 11 16

  • ir a entrevista o ver resultados

Screen Shot 2022-07-04 at 14 13 23

  • resultados de entrevista

Screen Shot 2022-07-04 at 14 14 30

  • ir a la entrevista es para ejecutar el cuestionario

Screen Shot 2022-06-20 at 19 40 23

  • abm candidatos list

Screen Shot 2022-06-20 at 19 40 45

  • abm candidatos create

Screen Shot 2022-06-20 at 19 40 55

  • abm candidatos edit

Screen Shot 2022-06-20 at 19 41 07

  • list

Screen Shot 2022-06-20 at 19 41 22

  • Interview complex form

Screen Shot 2022-06-20 at 19 41 33

TODO

  • Add login using JWT
  • Add security to Candidates
  • Add security to Interviews
  • Add security to Questions
  • Add security to Challenges

Deploy Guidelines

ec2 no implementado

  • https://www.youtube.com/watch?v=u0oEIqQV_-E

  • apt-get update

  • apt-get upgrade -y

  • apt-get install libgdal-dev

  • apt install python3-pip

  • pip install virtualenv

  • pip install GDAL

  • virtualenv env

  • git clone https://github.com/centrodph/fullstack-tp.git

  • source env/bin/activate

  • pip install django

  • pip install gunicorn

  • apt-get install -y nginx

    • start nginx: nginx
  • apt-get install npm

  • npm install -g yarn

  • apt-get install supervisor

    • add supervisor config:
      • cd /etc/supervisor/conf.d/
      • touch gunicorn.conf [program:gunicorn] directory=/home/ubuntu
  • AWS: config inbound rules for security group

  • cd fullstack/api

  • gunicorn --bind 0.0.0.0:8000 interview_project.wsgi:application

Open aplication: http://ec2-18-236-160-0.us-west-2.compute.amazonaws.com:8000/doc