Giter Site home page Giter Site logo

smail-ssm / print-designer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lmanukyan/print-designer

0.0 0.0 0.0 422 KB

T Shirt Design (Fabric.js + Vue.js)

JavaScript 30.88% HTML 0.63% Vue 53.52% Sass 1.02% Nunjucks 2.71% Dockerfile 0.46% TypeScript 10.78%

print-designer's Introduction

Print Designer

Print Designer is open source project, which based on Payload CMS, Vue.js and Fabric.js

website

Demo

https://app.print-rtp.ru/

Database

For storing records is used MongoDB

Installation

Clone the project

git clone https://github.com/lmanukyan/print-designer.git
cd print-designer

Create .env file

cp .env.example .env
# do not forget fill the file

Installation of dependencies

yarn install
yarn install:app

Development

Start the backend

yarn dev
# Admin panel is available on address
# http://localhost:3050/admin

Start the frontend

yarn dev:app
# App is available on address
# http://localhost:3040

Environment Variables

Backend .env variables

MONGODB_URI - MongoDB connection string

PAYLOAD_SECRET - Payload secret key

PAYLOAD_DOMAIN - Site address

SMTP_HOST - SMTP host

SMTP_PORT - SMTP port

SMTP_USER - SMTP login

SMTP_PASS - SMTP password

SMTP_NAME - Sender name

MANAGER_EMAIL - Receiver email address

Frontend .env variables

VUE_APP_API_URL - Address for API requests

Deployment

Build backend & frontend

yarn build

Run backend via pm2

NODE_ENV=production && pm2 start server.js

Nginx config

server {
  listen 80;
  server_name _;
  
  location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;
        proxy_pass http://127.0.0.1:3050;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}

print-designer's People

Contributors

lmanukyan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.