Source code for my website.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
Dušan Mitrović a8cb8943cb
Formatted the entire project with prettier
pirms 2 mēnešiem
config Formatted the entire project with prettier pirms 2 mēnešiem
db Formatted the entire project with prettier pirms 2 mēnešiem
middleware Formatted the entire project with prettier pirms 2 mēnešiem
models Formatted the entire project with prettier pirms 2 mēnešiem
routes Formatted the entire project with prettier pirms 2 mēnešiem
services Formatted the entire project with prettier pirms 2 mēnešiem
static Formatted the entire project with prettier pirms 2 mēnešiem
utilities Formatted the entire project with prettier pirms 2 mēnešiem
validations Formatted the entire project with prettier pirms 2 mēnešiem
views Formatted the entire project with prettier pirms 2 mēnešiem
.env.example Refactoring SSL configuration, among other things pirms 2 mēnešiem
.gitignore Add .vscode/ to .gitignore pirms 2 mēnešiem
.prettierrc Complete rewrite of the repository. pirms 1 gada
LICENSE Relicencing the project to AGPL, adding info route. pirms 10 mēnešiem
README.md Update README.md pirms 10 mēnešiem
app.js Refactoring SSL configuration, among other things pirms 2 mēnešiem
ecosystem.config.js Formatted the entire project with prettier pirms 2 mēnešiem
generate_certificate Add generate_certificates script pirms 1 gada
knexfile.js Formatted the entire project with prettier pirms 2 mēnešiem
nginx.conf Add security headers to nginx configuration pirms 2 mēnešiem
package-lock.json Formatted the entire project with prettier pirms 2 mēnešiem
package.json Formatted the entire project with prettier pirms 2 mēnešiem

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.