Source code for my website.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Dušan Mitrović c29333e7c7
Added image uploading and image compression
1 month ago
config Added image uploading and image compression 1 month ago
db Apply a patch from Dusan Malusev 2 months ago
middleware Added image uploading and image compression 1 month ago
models Remove json schemas from models as they aren't necessary 2 months ago
routes Added image uploading and image compression 1 month ago
services Added image uploading and image compression 1 month ago
static Added image uploading and image compression 1 month ago
utilities Added spam protection to the contact form. 1 month ago
validations Added spam protection to the contact form. 1 month ago
views Added image uploading and image compression 1 month ago
.env.example Complete rewrite of the repository. 7 months ago
.gitignore Fixing a blog post title mishap 4 months ago
.prettierrc Complete rewrite of the repository. 7 months ago
LICENSE Relicencing the project to AGPL, adding info route. 2 months ago
README.md Update README.md 2 months ago
app.js Added image uploading and image compression 1 month ago
ecosystem.config.js Add a pm2 ecosystem file 2 months ago
generate_certificate Add generate_certificates script 7 months ago
knexfile.js Complete rewrite of the repository. 7 months ago
nginx.conf Address an issue in nginx configuration. 3 months ago
package-lock.json Added image uploading and image compression 1 month ago
package.json Added image uploading and image compression 1 month ago

README.md

dusanmitrovic.xyz

Source code for my website.

Table of contents

Dependencies

  • Node >=v12
  • npm >=v6
  • MariaDB
  • Redis
  • Nginx (configuration provided)
  • knex-cli

Configuration

Generate a self-signed SSL certificate for local development

./generate_certificate

Create a copy of the included .env.example file and fill it with relevant information.

cp .env.example .env

Install application dependencies

  1. npm install
  2. sudo npm install -g knex

Run migrations

knex migrate:latest

Run seeds

knex seed:run

Run the development server

npm run dev

Licensing

All source code written for this website is licensed under the terms of GNU AGPLv3.

All content on this website is licensed under the terms of CC-BY-SA.