GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - haimich/copyundpasta: Source code of the food blog

BranchesTags
Open more actions menu

Latest commit

 

History

552 Commits
552 Commits

Folders and files

NameName
Last commit message
Last commit date
.circleci
.circleci
 
 
.vscode
.vscode
 
 
concept
concept
 
 
elastic_mappings
elastic_mappings
 
 
knex_migrations
knex_migrations
 
 
knex_seeds
knex_seeds
 
 
scripts
scripts
 
 
src
src
 
 
test
test
 
 
typings
typings
 
 
.babelrc
.babelrc
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
ecosystem.config.js
ecosystem.config.js
 
 
jest.config.js
jest.config.js
 
 
knexfile.js
knexfile.js
 
 
nuxt.config.ts
nuxt.config.ts
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

copyundpasta

My little foodblog

Libraries

  • NuxtJS
  • ExpressJS (included with Nuxt)
  • Jest
  • knex with mysql
  • element ui css framework

Build Setup

  • make sure you have a MySQL db running on port 3306, eg.:
docker run --name mariadb --restart always -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=haimich -e MYSQL_USER=haimich -e MYSQL_PASSWORD=haimich -p 3306:3306 -d mariadb:10.3.15

Afterwards to start or stop it just use

docker start mariadb and

docker stop mariadb


```bash
# install dependencies
$ npm install

# create tables
$ npm run db:rebuild

# serve with hot reload at localhost:3000
$ npm run dev

# debug from VS Code (@see https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_attaching-to-nodejs)
# this command needs to be executed from the VS terminal!
$ npm run debug

Custom hostname:

HOST=hostname ./node_modules/.bin/nuxt --hostname hostname

Live setup

  • checkout project
  • add .env file with:
DB_DATABASE=xxx
DB_USER=xxx
DB_PW=xxx
SERVER_HOST=0.0.0.0
SERVER_PORT=3000
AXIOS_BASE_URL=https://copyundpasta.de/
...

build for production and launch server

$ npm run build
$ npm start

deploy

  • add .env file with:
DEPLOY_HOST=xxx
DEPLOY_USERNAME=xxx
DEPLOY_PW=xxx
DEPLOY_HOMEDIR=/home/haimich/copyundpasta.de
APPBASE_WRITE_KEY_ARTICLES=xxx
npm run deploy

generate static project

$ npm run generate

pm2

pm2 start npm --name "cup" -- start

Element UI theme

For performance reasons the theme has been prebuilt (instead of importing element ui via scss).

The generated files are stored in src/scss/element-theme

@see https://element.eleme.io/#/en-US/component/custom-theme

  • generate variables file: et -i
  • edit variables in element-variables.scss (eg. $--color-primary: #1eb5da)
  • generate the theme: et
  • replace the previous theme with the new one: rm -rf src/scss/element-theme && mv theme src/scss/element-theme && rm -rf element-variables.scss
  • the generated files are referenced in nuxt.config.tx in the css section

About

Source code of the food blog

copyundpasta.de/

Topics

blognuxtjs

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.