Skip to content

Nuxtjs & Wagtail - A initial environment of full-stack web app with wagtail postgres for backend and nuxtjs vue for frontend, run with docker-compose

Notifications You must be signed in to change notification settings

QuangPhamll/nuxtjs_wagtail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base site - full stack

A initial environment of full-stack web app with wagtail postgres for backend and nuxtjs vue for frontend, run with docker-compose

Build with:

- django: v.3.0.3
- wagtail: v.2.8
- postgres: 11
- nuxjs: v.2.11.0
- docker

Run app:

docker-compose build
docker-compose up

backend cms:

http://localhost:7999/admin
user: admin
password: changeme

frontend:

http://localhost:8000

Recommended to get api from backend with nuxtjs plugin ~/plugins/axios not only axios:

import axios from '~/plugins/axios'
....
const {data} = await axios.get('/api/v2/pages/?slug=home');
....

Run command inside container:

  • Backend example: docker-compose run backend python manage.py

  • Fontend example: docker-compose run --no-deps frontend npm -v

  • Access database:

    • docker exec -it nuxtjs_wagtail_db_1 /bin/bash : nuxtjs_wagtail_db_1 is container name
    • then psql -U postgres - postgres is user defined in DATABASES of backend/backend/settings/base.py

About

Nuxtjs & Wagtail - A initial environment of full-stack web app with wagtail postgres for backend and nuxtjs vue for frontend, run with docker-compose

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published