All Projects → prisma-cms → boilerplate

prisma-cms / boilerplate

Licence: other
Boilerplate for @prisma-cms

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to boilerplate

Canner
⚡️[NOT MAINTAINED] Content Management Framework creates custom CMS fast and easy. Support data sources such as Firebase/Firestore, GraphQL and Restful APIs.
Stars: ✭ 2,472 (+11136.36%)
Mutual labels:  apollo, prisma, prisma-cms
cannercms
⚡️[NOT MAINTAINED] Content Management Framework creates custom CMS fast and easy. Support data sources such as Firebase/Firestore, GraphQL and Restful APIs.
Stars: ✭ 2,452 (+11045.45%)
Mutual labels:  apollo, prisma, prisma-cms
TriTan-CMS
TriTan CMS is a developer centric content management framework that allows you to go completely headless or nearly headless. With the mighty TriTan, you can build amazing RESTful applications and robust websites.
Stars: ✭ 19 (-13.64%)
Mutual labels:  headless-cms, api-first, api-first-cms
kontent-boilerplate-express-apollo
Kontent Boilerplate for development of Express application using Apollo server and GraphQL.
Stars: ✭ 21 (-4.55%)
Mutual labels:  apollo, apollo-client, headless-cms
graphql-workshop
⚒ 🚧 A GraphQL workshop to learn GraphQL implementations
Stars: ✭ 20 (-9.09%)
Mutual labels:  apollo, apollo-client, headless-cms
Naperg
Fullstack Boilerplate GraphQL. Made with React & Prisma + authentication & roles
Stars: ✭ 661 (+2904.55%)
Mutual labels:  apollo, apollo-client, prisma
Next Graphql Blog
🖊 A Blog including a server and a client. Server is built with Node, Express & a customized GraphQL-yoga server. Client is built with React, Next js & Apollo client.
Stars: ✭ 152 (+590.91%)
Mutual labels:  apollo, apollo-client
Ddp Apollo
DDP link for Apollo with GraphQL Subscriptions support
Stars: ✭ 163 (+640.91%)
Mutual labels:  apollo, apollo-client
GitHunt-Polymer
An example of a client-side app built with Polymer and Apollo Client.
Stars: ✭ 13 (-40.91%)
Mutual labels:  apollo, apollo-client
Modern Graphql Tutorial
📖 A simple and easy GraphQL tutorial to get started with GraphQL.
Stars: ✭ 219 (+895.45%)
Mutual labels:  apollo, prisma
React Redux Graphql Apollo Bootstrap Webpack Starter
react js + redux + graphQL + Apollo + react router + hot reload + devTools + bootstrap + webpack starter
Stars: ✭ 127 (+477.27%)
Mutual labels:  apollo, apollo-client
Apollo Cache Redux
Redux cache for Apollo Client 2.0. This project is no longer maintained.
Stars: ✭ 179 (+713.64%)
Mutual labels:  apollo, apollo-client
matters-web
Website of Matters.News, built with Next.js.
Stars: ✭ 70 (+218.18%)
Mutual labels:  apollo, apollo-client
Reactql
Universal React+GraphQL starter kit: React 16, Apollo 2, MobX, Emotion, Webpack 4, GraphQL Code Generator, React Router 4, PostCSS, SSR
Stars: ✭ 1,833 (+8231.82%)
Mutual labels:  apollo, apollo-client
Apollo Php Client
携程Apollo配置中心PHP客户端
Stars: ✭ 147 (+568.18%)
Mutual labels:  apollo, apollo-client
Agollo
An elegant Go client for Ctrip Apollo
Stars: ✭ 167 (+659.09%)
Mutual labels:  apollo, apollo-client
Graphql Directive
Use custom directives in your GraphQL schema and queries 🎩
Stars: ✭ 142 (+545.45%)
Mutual labels:  apollo, apollo-client
ctrip-apollo
The most delightful and handy Node.js client for ctrip apollo configuration service.
Stars: ✭ 56 (+154.55%)
Mutual labels:  apollo, apollo-client
Prisma Tools
Prisma tools to help you generate CRUD system for GraphQL servers
Stars: ✭ 237 (+977.27%)
Mutual labels:  apollo, prisma
nest-next-sample
NestJS + Next.js sample application / Backend and Frontend use only TypeScript!!!
Stars: ✭ 110 (+400%)
Mutual labels:  apollo, prisma

🙌 Sorry for my english...

Installation

Base requirements

Linux server

i used ubuntu-18 on digitalocean.com (referral link) with 2GB tarif plan for $10/month

sudo apt update
sudo apt upgrade -y

Install common programs

sudo apt install -y mc git build-essential
Create user
# Create user (not required if you use another user)
sudo useradd USERNAME -d /home/USERNAME -G sudo -s /bin/bash
sudo mkdir /home/USERNAME
cd /home/USERNAME

# for bash hightlighting
wget https://gist.githubusercontent.com/Fi1osof/2f8ea23f5411c5c7a0e0025f04941aee/raw/.bashrc 

sudo chown USERNAME: /home/USERNAME -R

# set password
passwd USERNAME

Install node-js and npm

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

Check node-js node -v

Install yarn

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

Check yarn yarn -v

Install prisma

sudo npm i -g prisma npm-run-all nodemon pm2 cross-env

Check prisma prisma -v

Reset homedir permissions

sudo chown $(whoami): ~ -R

Create /var/www if not exists

sudo mkdir /var/www
sudo chown $(whoami): /var/www -R

Install @prisma-cms/boilerplate

cd /var/www
git clone https://github.com/prisma-cms/boilerplate
cd boilerplate
yarn --ignore-engines

Deploy schema

Install prisma local

Install docker

sudo apt-get install software-properties-common python-software-properties
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-get update
sudo apt-get install -y docker-engine

Check docker installed docker -v

Install docker-compose

sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Check docker-compose docker-compose -v

Start prisma docker images

Note: before do this, you can edit src/server/schema/prisma/docker-compose.yml for change prisma port and password.

sudo docker-compose -f ./src/server/scripts/docker/prisma/docker-compose.yml up -d

Start PhpMyAdmin (optionaly)

sudo docker run -d --link prisma_mysql_1:db --network prisma_default -p 8080:80 phpmyadmin/phpmyadmin

Deploy

endpoint=http://localhost:4466/my-project/my-stage yarn deploy
Explaining yarn deploy

Note: you sould not execute this commands separately from yarn deploy, but may, if undestand what they are doing.

This command run several commands:
1. `yarn build-schema-prisma` - generate raw graphql schema (for backend)
2. `yarn deploy-schema` - deploy generated schema into prisma server. <br />
  If you deploy schema for update exists database and wont force deploy while prisma reject deleting data, you may use `yarn deploy-schema -f` OR `yarn deploy-force` (for run complete procedure).
3. `yarn get-schema -p prisma` - get schema from prisma server
4. `yarn build-schema-api` - generate API schema (for frontend)
5. `yarn generate-fragments-api` - generate JS fragments for apollo client.

Run server API

APP_SECRET={MY_ULTRA_SECRET_KEY} endpoint={endpoint} yarn start-server

Current endpoint after deploy you may see by this command (look for uncommented endpoint):

cat src/schema/generated/prisma.graphql |grep "# source: "

For example:

APP_SECRET=MY_SECRET endpoint=http://localhost:4466/prisma/dev yarn start-server

Open http://localhost:4000 (or http://server_address:4000)

Here you may write graphql requests.

Run frontend server

# start server on PORT 3000
yarn start

Open http://localhost:3000

Different starts
# specify your own port
PORT=3223 yarn start

# or run on default web-port (admin permissions required)
sudo PORT=80 yarn start

# or run https (admin permissions required, used self-signed certificate)
sudo HTTPS=true PORT=443 yarn start

Build scripts and run Server-Side-Rendering server (SSR)

Build scripts

PUBLIC_URL=/ yarn build

Run SSR server

yarn start-ssr

After install

You'll need create your own site from scratch. See demo video: https://www.youtube.com/watch?v=YxoMhYPv96U&list=PLc0oMsU0oNwNF6e-Tnrn3eXhg3wQGGCvJ

Known Issues

Cannot find module '../build/Release/sharp.node'

rm yarn.lock -f
npm rebuild

Crash server if used more that one sharp version

Check that installed one sharp modules

find -regex .*/node_modules/sharp$

Should be only one modules ./node_modules/sharp

ToDo:

  1. Write using nginx docs
  2. Write server customization docs
  3. Write frontend customization docs
  4. Examples

Support project

We are looking for sponsors.

Also you may support by ETH 0x4c791666351Ec3b223acF96C9d9BE431679E5C04 or paypal.com (send for [email protected])

Feel free ask any questions on https://prisma-cms.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].