Skip to content

santiagovj22/data-transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App data transfer departments

By: Santiago Valle

Requirements

  • nodejs v14.15.0
  • npm 6.14.8
  • docker 19.09.13
  • docker-compose 1.26.0
  • yarn npm install -g yarn

Description:

  • Create a layout with a form where we would send information such as { department, city, name, email }
  • Save the information in a database (Mysql)

Acceptance Criteria:

  • Frontend:

    • Create the view using React
    • Create the neccesary fronten logic
  • Backend:

    • Create an Api to save the information

Steps for run docker container db

  • Clone repository: git clone <url>
  • cd App data-transfer
  • yarn db
  • port: 3306

Steps for run docker container api

  • yarn api
  • after the container db is running maybe the api logs show something like Econnrefused, or just server on port , you need fix this executing the next commands
  • docker exec -it db bash
  • mysql -uroot -p
  • password: secret
  • ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY 'secret';
  • flush privileges;
  • exit twice
  • Having running the api we need restart container api
  • docker restart api
  • Right now you should see the api running ok with two messages { Server on port 3001 and Database connected }

Endpoints

Steps for run docker container ui

Pending principal tasks:

  • view for manage the admin CRUD
  • querys for CRUD
  • Design a good modal
  • Get the cities by department

Notes :'c :

  • the project architecture was build having in mind for the future, scalable, other devs would read the code, etc also with the bonus i added the docker container to more easy read and access

https://refactoring.guru/es

About

Nodejs/ React / Docker / Mysql

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published