Giter Club home page Giter Club logo

ipi-2021-2022---tp-cv's Introduction

IPI-TP-CV

Objectives

  1. Show a list of all users.
  2. Create a spring project to show a CV of a given user.
  3. Add and endpoint to create an user.

Database

Before run the project, you need to create a file named application.properties at the project root.

In this file, add this lines :

spring.datasource.url=jdbc:mysql://localhost:3306/TP_CV?serverTimezone=UTC
spring.datasource.username=
spring.datasource.password=

Be care, if your local MySQL database is not on the port 3306, you need to change the value of spring.datasource.url. Next, you need to add your username and password (if is needed) to connect at the database.

SQL Script

Previously you create a file for the project, with that file the project could be connect to the database.

Here is the script for the database:

CREATE DATABASE TP_CV;
use TP_CV;

CREATE TABLE personne(
                         id Int AUTO_INCREMENT,
                         nom VARCHAR(50) NOT NULL,
                         prenom VARCHAR(50) NOT NULL,
                         adresse VARCHAR(50),
                         phone VARCHAR(50),
                         mail VARCHAR(50),
                         date_naissance DATE,
                         presentation VARCHAR(250),
                         job VARCHAR(50),
                         PRIMARY KEY(id)
);

CREATE TABLE skills(
                       id Int AUTO_INCREMENT,
                       titre VARCHAR(50) NOT NULL,
                       type INT NOT NULL,
                       description VARCHAR(150) NOT NULL,
                       notation VARCHAR(50),
                       id_personne INT NOT NULL,
                       PRIMARY KEY(id),
                       FOREIGN KEY(id_personne) REFERENCES personne(id)
);

CREATE TABLE experience(
                           id Int AUTO_INCREMENT,
                           titre VARCHAR(50) NOT NULL,
                           type INT NOT NULL,
                           description VARCHAR(150),
                           date_debut VARCHAR(50),
                           date_fin VARCHAR(50),
                           id_personne INT NOT NULL,
                           PRIMARY KEY(id),
                           FOREIGN KEY(id_personne) REFERENCES personne(id)
);

MERISE - Modèle conceptuel des données

image

Endpoint

All endpoint and all tests are on a Postman Documentation.

ipi-2021-2022---tp-cv's People

Contributors

magug avatar tykok avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.