Skip to content

Commit

Permalink
feat: self host
Browse files Browse the repository at this point in the history
  • Loading branch information
iib0011 committed Jul 11, 2024
1 parent 6ef6520 commit 5cc4f40
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 79 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
playwright-report
coverage
dist
test-results
171 changes: 95 additions & 76 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:20 as build

WORKDIR /app

COPY package.json package-lock.json ./
RUN npm install

COPY . .
RUN npm run build

FROM nginx:alpine

COPY --from=build /app/dist /usr/share/nginx/html

# Expose port 80
EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
Welcome to **OmniTools**, an open-source alternative to OnlineTools.com.
This project offers a variety of online tools to help with everyday tasks,
all available for free and open for community contributions. Please don't forget to star the repo to support us.
Here is the [live](https://omnitools.netlify.app/) website.

![img.png](img.png)

## Table of Contents

- [Features](#features)
- [Self-host](#self-host)
- [Contribute](#contribute)
- [License](#license)
- [Contact](#contact)
Expand All @@ -23,17 +27,23 @@ OmniTools includes a variety of tools, such as:

- Generate prime numbers, generate perfect numbers etc.

3. **Text Tools**
3. **String/List Tools**

- Case converters, text cleaners, text formatters, etc.
- Case converters, shuffle list, text formatters, etc.

4. **Date and Time Tools**

- Date calculators, time zone converters, etc.

5. **Miscellaneous Tools**

- JSON, XML tools, etc.
- JSON, XML tools, CSV tools etc.

## Self-host

```bash
docker run -d --name omni-tools --restart unless-stopped -p 8080:80 iib0011/omni-tools:latest
```

## Contribute

Expand Down
Binary file added img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5cc4f40

Please sign in to comment.