- Description
- Prerequisites
- [Getting Started](#Getting Started)
- [Technology Stack](#Technology Stack)
- Authors
PIScope is an application linked to the European patent database: https://www.epo.org/searching-for-patents/data/web-services/ops_fr.html Its purpose is to allow the user to register his profile, to search for patents and to be able to keep his favorite ones and add comments to them.
- Angular CLI: 13.1.4 (check by running ng --version in your console)
- Node.js 14+ (check by running node –version in your console)
- Java 8.* (check by running java --version in your console)
- Maven 3.* (check by running mvn --version in your console)
- MySQL 8.0.* (check by running mysql --version in your console)
- Git 2.* (check by running git --version in your console)
- WARNING : This app use Open Patent Services API, you also need to get an API key from this service
If you meet the prerequisites, you can proceed to the installation of the project by running the the following commands:
git clone https://github.com/WildCodeSchool/orleans-cda-sept2021-java-project-brevet
cd /orleans-cda-sept2021-java-project-brevet
here you set you database informations
JDBC_DATABASE_URL=mysql://localhost/databaseName
DATABASE_USERNAME=mysql_user
DATABASE_PASSWORD=mysql-password
DATASOURCE_DRIVER_CLASS_NAME=com.mysql.jdbc.Driver
PORT=8080
JPA_HIBERNATE_DDL_AUTO=update
JPA_SHOW_SQL=true
-
The list of variables for [API OPS](https://www.epo.org/searching-for-patents/data/web-services/ops.html)
you will need to go on API OPS site web for and sign up, to get the keys
CONSUMMER_KEY=your_consumer_key_for_api_call
CONSUMMER_SECRET_KEY=your_secret_key-for_api_call
you can choose a jwt secret key and expiration time
JWT_SECRET=choose_your_jwt-secret_key
JWT_EXPIRATION_MS=86400000
The exemple here is for gmail you will need to change for your mail
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=exemple@gmail.com
MAIL_PASSWORD=gmailPassword
You can choose in how much time your password token stays valid (in minutes)
PASSWORD_RESER_TOKEN_EXPIRATION=1440
- You need to find the path for file mailMessage.txt
PATH_FOR_MAIL_MESSAGE=./mailMessage.txt
You can choose your front server and your port if you are in local you can use localhost and 4200
FRONT_SERVER_NAME=localhost
FRONT_SERVER_PORT=4200
AUTHORIZED_URLS=http://localhost:4200/
EPO_URL=http://ops.epo.org/3.2/rest-services/
PATENT_DATA_URL=published-data/publication/epodoc/
PATENT_SEARCH_URL=published-data/search/full-cycle
ESPACENET_URL=https://worldwide.espacenet.com/patent/search/family/
Note: On Windows: all variables must be inline separated by 1 space.
4. Import the last version of the dataVx.sql file into your database
5. To run the server of the application
- On Linux: run the command sh ./env_spring_boot_run.sh
- On Windows:
open Git Bash Go to the root directory of the project orleans-cda-sept2021-java-project-brevet
Run the command: sh env_spring_boot_run.sh
1. Go into the client side folder by running the command:
cd angular/ 2. Install Angular dependencies:
npm install 3. Run server
ng serve
Component | Technology | |
---|---|---|
Backend(REST) | Spring boot 2 (Java) | |
Frontend | Angular 13 | |
Security | JWT Authorization | |
Database | MySQL | |
Persistance | JPA | |
Server Build Tools | Maven | |
Client Build Tools | angular-cli, npm install |