Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cc-compressor-sample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.env
43 changes: 43 additions & 0 deletions cc-compressor-sample/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# CC Compressor Sample
This plugin is an example NodeJS app that you could deploy to a company server where you can select an image from my Libraries and then download a "web-optimised", minimised (by the server, e.g., via a TinyPNG API or something similar) rendition in a specific resolution.

## Install dependencies

First ensure that your terminal is in the root of this project. Then:

For `yarn` users, install all dependencies using:

```
yarn install
```

For `npm` users, install all dependencies using:

```
npm install
```

## Firestore Setup

Next, you need to create a `.env` file containing all the variables. Enter all variables from your Firebase project:

```sh
{
echo 'SESSION_SECRET='
echo 'API_KEY='
echo 'API_SECRET='
echo 'PORT='
echo 'TINIFY_API_KEY='

} >> .env
```

## Launch the project

Run the following command for running the backend:

```sh
npm run dev
```


Loading