Code Monkey home page Code Monkey logo

website-template-viewer's Introduction

Website Template Viewer Application

The template viewer is modeled after the filmstrip folder view in Windows Explorer.

Overview

The application is divided into three main services that are designed to operate decoupled from each other.

The Client Application

website-template-client

The Graphql API

website-template-server

The local CDN

website-template-server - cdn

Setup Instructions

Prerequistes

  • pm2
  • .env file for website-template-client
  • config directory setup for client and server directories
### Code Structure

website-template-viewer
|-- client
|   |
|   |--config
|   |
|   |--src
|   |
|   |--.env
|   |
|---server
|   |
|   |--cdn
|   |
|   |--config
|   |
|   |--src
|   |   |
|   |   |--resolvers
|   |   |
|   |   |--schema
|   |   |
|   |   |--server.ts

To run the application locally you will need the following global node packages

  • pm2 (Node process)

Installing pm2

npm install -g pm2

Setting up configuration files.

Running the application in development

  1. Run the graphql server and local cdn
  2. Run the client application

Running the graphql server and cdn application (requires pm2)

cd server

npm i

npm run start:dev-cdn

Running the client application

cd client

npm i

npm run start

The React application requires a .env file.

./client/.env

----

REACT_APP_CDN_URL=http://localhost:4001
REACT_APP_GRAPHQL_URL=http://localhost:4000/graphql

** The CDN is intended only for development mode and serves the images

website-template-viewer's People

Contributors

ytwguru avatar

Watchers

 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.