Skip to content

A template structure for a dockerized Vue, Node Express and Postgres project

Notifications You must be signed in to change notification settings

CrazyCrud/docker-express-vue-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized Vue, Nodejs Express and Postgres Template

Install

Before you can start developing you need to complete the following steps:

  • Create a ".env" file from the ".env.template" template
  • Go to folder "/srv" and run npm i
  • Go to folder "/web" and run npm i

Maybe you get the following error when trying to complete the last step: Error: Missing binding /usr/src/web/node_modules/node-sass/vendor/linux_musl-x64-64/binding.node.
While the containers are still running open another terminal and execute the following: docker-compose exec web npm rebuild node-sass.

Then run docker-compose down and docker-compose up again.

Develop

Run docker-compose up or docker-compose up -d to free the terminal.

To install NPM packages for the frontend development process execute the following: docker-compose exec web npm i <package-name>

You can check the Node server with curl -i localhost:8083/ which should return "Hello!".

You can connect to the database via PG-Admin by entering the connection details from the ".env" file and you can also edit the "init.sql" file in the "postgres-init " folder.

About

A template structure for a dockerized Vue, Node Express and Postgres project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published