2023-06-27 03:25:34 +00:00
|
|
|
# Clonegur
|
2023-06-26 13:46:12 +00:00
|
|
|
|
2023-06-27 03:25:34 +00:00
|
|
|
Created by TopchetoEU
|
2023-06-26 13:46:12 +00:00
|
|
|
|
2023-06-27 03:25:34 +00:00
|
|
|
## Technologies:
|
|
|
|
|
|
|
|
- Deno
|
|
|
|
- Angular
|
|
|
|
- My brainz
|
|
|
|
|
|
|
|
## What is this?
|
|
|
|
|
|
|
|
This is exactly what the title sells it for - it's an imgur clone (but kinda worse).
|
2023-06-30 21:09:34 +00:00
|
|
|
Currently, the server is hosted [here](https://clonegur.topcheto.eu)
|
2023-06-27 03:25:34 +00:00
|
|
|
|
2023-06-29 19:18:52 +00:00
|
|
|
## Running the code
|
2023-06-27 03:25:34 +00:00
|
|
|
|
2023-06-29 19:18:52 +00:00
|
|
|
### Development
|
|
|
|
|
|
|
|
Start the backend with:
|
2023-06-27 03:25:34 +00:00
|
|
|
|
|
|
|
```sh
|
2023-06-29 19:18:52 +00:00
|
|
|
# Executed in the backend folder
|
2023-06-27 03:25:34 +00:00
|
|
|
$ deno run -A src/index.ts
|
|
|
|
```
|
2023-06-29 19:18:52 +00:00
|
|
|
|
|
|
|
And the frontend with:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# Executed in the frontend folder
|
|
|
|
$ ng serve
|
|
|
|
```
|
|
|
|
|
|
|
|
### Production
|
|
|
|
|
|
|
|
First, build the frontend:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# Executed in the frontend folder
|
|
|
|
$ ng build
|
|
|
|
```
|
|
|
|
|
|
|
|
Then, copy the contents of backend/static. Finally start the backend:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# Executed in the backend folder
|
|
|
|
$ deno run --allow-read --allow-write --allow-net main.ts
|
|
|
|
```
|
|
|
|
|