Skip to content

Commit

Permalink
Merge pull request #47 from ARGOeu/devel
Browse files Browse the repository at this point in the history
Version 1.0.0
  • Loading branch information
themiszamani authored Feb 1, 2023
2 parents 6a1c604 + 8f3521a commit 15c7871
Show file tree
Hide file tree
Showing 35 changed files with 32,739 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# IntelliJ
.idea
*.ipr
*.iml
*.iws
47 changes: 47 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
pipeline {
agent none
options {
checkoutToSubdirectory('pcc-ui')
newContainerPerStage()
}
environment {
PROJECT_DIR='pcc-ui'
}
stages {
stage ('Build and Deploy pcc-ui') {
agent {
docker {
image 'node:lts-buster'
}
}
steps {
echo 'Build pcc-ui'
sh '''
cd $WORKSPACE/$PROJECT_DIR
npm install
CI=false npm run build
'''
}
}
}
post {
success {
script{
if ( env.BRANCH_NAME == 'devel' ) {
slackSend( message: ":rocket: New version for <$BUILD_URL|$PROJECT_DIR>:$BRANCH_NAME Job: $JOB_NAME !")
slackSend( message: ":satellite: New version of <$BUILD_URL|$PROJECT_DIR> built successfully to devel!")
}
else if ( env.BRANCH_NAME == 'master' ) {
slackSend( message: ":rocket: New version for <$BUILD_URL|$PROJECT_DIR>:$BRANCH_NAME Job: $JOB_NAME !")
}
}
}
failure {
script{
if ( env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'devel' ) {
slackSend( message: ":rain_cloud: Build Failed for <$BUILD_URL|$PROJECT_DIR>:$BRANCH_NAME Job: $JOB_NAME")
}
}
}
}
}
40 changes: 38 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,38 @@
# pcc-ui
PCC UI
# PCC-UI

A ReactJS application for the PID Central Catalogue (PCC)

## Configuration

The pcc-ui application provides a simple way to configure connection through the `config.js` file. Before using just set the `endpoint` parameter appropriately.

The `public` directory of the project may host specific assets such as the `favicon.ico` and the `logo.svg`.

## Installation

### Development mode

1. `git clone https://github.com/ARGOeu/pcc-ui.git`
2. `cd pcc-ui`
3. `npm install`
4. `npm start`

This will run the app in the development mode.Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

### Production mode

1. `git clone https://github.com/ARGOeu/pcc-ui.git`
2. `cd pcc-ui`
3. `npm install`
4. `npm run build`

This will build the app for production to the `build` folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
Loading

0 comments on commit 15c7871

Please sign in to comment.