-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8982557
Showing
105 changed files
with
29,938 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Portfolio CI/CD | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build & Push Image | ||
run: | | ||
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{secrets.DOCKERHUB_USERNAME}}" --password-stdin | ||
docker image build . -t amirzenoozi/linkly-react-app:latest | ||
docker push amirzenoozi/linkly-react-app:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# 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 | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.idea | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Dockerfile | ||
|
||
# Use an existing node alpine image as a base image. | ||
FROM node:18-alpine | ||
|
||
# Set the working directory. | ||
WORKDIR /app | ||
|
||
# Copy the package.json file. | ||
COPY package.json yarn.lock ./ | ||
|
||
# Install application dependencies. | ||
RUN yarn install --production | ||
|
||
# Install serve node package. | ||
RUN yarn global add serve | ||
|
||
# Bundle app source | ||
COPY . . | ||
|
||
# Build the application. | ||
RUN yarn build | ||
|
||
# Expose the port. | ||
EXPOSE 3000 | ||
|
||
# Run the application. | ||
CMD ["serve", "-s", "build", "-l", "3000"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Linkly URL Shortener React App | ||
|
||
|
||
![](https://github.com/amirzenoozi/linkly-react-app/blob/main/Main.jpg) | ||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
This project lets you have a simple portfolio website that is responsive and easy to use. | ||
You can add your skills and experiences. | ||
|
||
## Run the project | ||
In the project directory, you can run: | ||
1. ```yarn install``` | ||
2. ```yarn start``` | ||
3. Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
## Other Available Scripts | ||
|
||
1. For Test: `yarn run test` | ||
2. For Build: `yarn run build` | ||
3. For Manual Setting: `yarn run eject` | ||
|
||
> **Note: this is a one-way operation. Once you `eject`, you can’t go back!** | ||
Launches the test runner in the interactive watch mode.\ | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
|
||
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. | ||
|
||
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. | ||
|
||
|
||
## Useful Links | ||
|
||
1. [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
2. [React documentation](https://reactjs.org/). |
Oops, something went wrong.