Skip to content

Commit aabef74

Browse files
committed
new release
1 parent 1fc9549 commit aabef74

File tree

152 files changed

+47533
-19281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+47533
-19281
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
.env
78

89
# testing
910
/coverage
@@ -21,5 +22,3 @@
2122
npm-debug.log*
2223
yarn-debug.log*
2324
yarn-error.log*
24-
.env
25-
package-lock.json
File renamed without changes.

Dockerfile

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM ubuntu:20.04
2+
3+
ARG APP_NAME
4+
5+
# test arg
6+
RUN test -n "$APP_NAME"
7+
8+
# install system packages
9+
RUN apt-get update -y
10+
RUN apt-get install -y \
11+
vim \
12+
wget \
13+
curl \
14+
net-tools \
15+
xz-utils
16+
17+
# install node
18+
WORKDIR /opt
19+
RUN wget https://nodejs.org/dist/v14.19.1/node-v14.19.1-linux-x64.tar.xz
20+
RUN tar -xvf node-v14.19.1-linux-x64.tar.xz
21+
ENV PATH="${PATH}:/opt/node-v14.19.1-linux-x64/bin"
22+
# RUN ln -s /opt/node-v14.19.1-linux-x64/bin/node /usr/bin/
23+
# RUn ln -s /opt/node-v14.19.1-linux-x64/bin/npm /usr/bin/
24+
25+
# setup user
26+
RUN useradd -ms /bin/bash ubuntu
27+
USER ubuntu
28+
29+
# install app
30+
RUN mkdir -p /home/ubuntu/"$APP_NAME"/"$APP_NAME"
31+
WORKDIR /home/ubuntu/"$APP_NAME"/"$APP_NAME"
32+
COPY . .
33+
RUN echo $PATH
34+
RUN npm install
35+
36+
CMD ["npm", "start"]

ENV.md

-4
This file was deleted.

Jenkinsfile

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
pipeline {
2+
agent any
3+
4+
environment {
5+
ENV_TYPE = "dev"
6+
APP_NAME = "bottlecrm-app"
7+
DOCKERHUB = credentials("dockerhub")
8+
DOCKER_IMAGE_TAG = "build-${env.BUILD_NUMBER}-${env.GIT_COMMIT[0..7]}"
9+
DOCKER_IMAGE = "ashwin31/bottlecrm_uix:${env.DOCKER_IMAGE_TAG}"
10+
DOCKER_CONFIG = "config.json"
11+
}
12+
13+
stages {
14+
stage("build") {
15+
steps {
16+
sh "pwd; whoami; ls -al;"
17+
sh "docker build --build-arg APP_NAME=$APP_NAME -t ${env.DOCKER_IMAGE} ."
18+
}
19+
}
20+
21+
stage("push") {
22+
steps {
23+
sh "echo '$DOCKERHUB_PSW' | docker login -u $DOCKERHUB_USR --password-stdin"
24+
sh "docker push ${env.DOCKER_IMAGE}"
25+
}
26+
}
27+
28+
stage('trigger deploy') {
29+
steps {
30+
build job: 'deploy', parameters: [
31+
string(
32+
name: 'ENV_TYPE',
33+
value: "${env.ENV_TYPE}"
34+
),
35+
string(
36+
name: 'APP_NAME',
37+
value: "${env.APP_NAME}"
38+
),
39+
string(
40+
name: 'DOCKER_IMAGE',
41+
value: "${env.DOCKER_IMAGE}"
42+
)
43+
]
44+
}
45+
}
46+
}
47+
48+
post {
49+
always {
50+
cleanWs()
51+
dir("${env.WORKSPACE}@tmp") {
52+
deleteDir()
53+
}
54+
dir("${env.WORKSPACE}@script") {
55+
deleteDir()
56+
}
57+
dir("${env.WORKSPACE}@script@tmp") {
58+
deleteDir()
59+
}
60+
sh 'docker rmi $(docker images -aq) || true'
61+
}
62+
}
63+
}

README.md

+47-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,50 @@
1-
# React CRM (bottlecrm.com)
1+
# Getting Started with Create React App
2+
3+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4+
5+
## Available Scripts
6+
7+
In the project directory, you can run:
8+
9+
### `npm start`
10+
11+
Runs the app in the development mode.\
12+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13+
14+
The page will reload if you make edits.\
15+
You will also see any lint errors in the console.
16+
17+
### `npm test`
18+
19+
Launches the test runner in the interactive watch mode.\
20+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21+
22+
### `npm run build`
23+
24+
Builds the app for production to the `build` folder.\
25+
It correctly bundles React in production mode and optimizes the build for the best performance.
26+
27+
The build is minified and the filenames include the hashes.\
28+
Your app is ready to be deployed!
29+
30+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31+
32+
### `npm run eject`
33+
34+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35+
36+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37+
38+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39+
40+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41+
42+
## Learn More
43+
44+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45+
46+
To learn React, check out the [React documentation](https://reactjs.org/).
47+
248

3-
CRM UI developed in react for django-crm
449

5-
[![RunCode](https://runcode-app-public.s3.amazonaws.com/images/dark_btn.png)](https://runcode.io)
650

7-
### standards to follow
8-
* two space indentation
9-
* images should have img_ prefix

0 commit comments

Comments
 (0)