All Projects → paul-phan → Shopify Mern Boilerplate

paul-phan / Shopify Mern Boilerplate

Licence: mit
A Boilerplate for creating MERN stack Shopify app.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Shopify Mern Boilerplate

Node Auth
基于 Node Express Mongoose 实现的用户注册/登陆权限验证
Stars: ✭ 10 (-50%)
Mutual labels:  mongodb, express
M Mall Admin
🐶 微信小程序-小商城后台(基于 Node.js、MongoDB、Redis 开发的系统...)
Stars: ✭ 895 (+4375%)
Mutual labels:  mongodb, express
Nodeapi
Simple RESTful API implementation on Node.js + MongoDB.
Stars: ✭ 719 (+3495%)
Mutual labels:  mongodb, express
Node Express Mongodb Jwt Rest Api Skeleton
This is a basic API REST skeleton written on JavaScript using async/await. Great for building a starter web API for your front-end (Android, iOS, Vue, react, angular, or anything that can consume an API). Demo of frontend in VueJS here: https://github.com/davellanedam/vue-skeleton-mvp
Stars: ✭ 603 (+2915%)
Mutual labels:  mongodb, express
Mean Angular5 Passport Authentication
Securing MEAN Stack (Angular 5) Web Application using Passport Authentication
Stars: ✭ 24 (+20%)
Mutual labels:  mongodb, express
Rest Api Nodejs Mongodb
A boilerplate for REST API Development with Node.js, Express, and MongoDB
Stars: ✭ 672 (+3260%)
Mutual labels:  mongodb, express
Geek Navigation
❤️ 极客猿梦导航-独立开发者的导航站!
Stars: ✭ 832 (+4060%)
Mutual labels:  mongodb, express
Fullstack Javascript Architecture
✍️ Opinionated project architecture for Full-Stack JavaScript Applications.
Stars: ✭ 464 (+2220%)
Mutual labels:  mongodb, express
Thriftfindr
Thriftstore review site using Node, Mongo and the Google places API
Stars: ✭ 23 (+15%)
Mutual labels:  mongodb, express
Mevn Stack
Stars: ✭ 19 (-5%)
Mutual labels:  mongodb, express
Node Express Mongoose Demo
A simple demo app using node and mongodb for beginners
Stars: ✭ 4,976 (+24780%)
Mutual labels:  mongodb, express
Express Boilerplate
🚀 Starter project for a RESTful API in Node with Express & mongoose component-based
Stars: ✭ 9 (-55%)
Mutual labels:  mongodb, express
Vue Express Mongodb
前后端分离
Stars: ✭ 534 (+2570%)
Mutual labels:  mongodb, express
Mevn Cli
Light speed setup for MEVN(Mongo Express Vue Node) Apps
Stars: ✭ 696 (+3380%)
Mutual labels:  mongodb, express
Mern Crud
A simple records system using MongoDB, Express.js, React.js, and Node.js with real-time CRUD operations using Socket.io
Stars: ✭ 493 (+2365%)
Mutual labels:  mongodb, express
Nodepress
😎 RESTful API service for Blog/CMS, powered by @nestjs
Stars: ✭ 829 (+4045%)
Mutual labels:  mongodb, express
Social Network
Mini social network that I made as my first web app project.
Stars: ✭ 458 (+2190%)
Mutual labels:  mongodb, express
Api Design Node V3
[Course] API design in Node with Express v3
Stars: ✭ 459 (+2195%)
Mutual labels:  mongodb, express
Node Express Boilerplate
A boilerplate for building production-ready RESTful APIs using Node.js, Express, and Mongoose
Stars: ✭ 890 (+4350%)
Mutual labels:  mongodb, express
Express Boilerplate
A fast, simple Node.js/Express + MongoDB + Vue.js web app boilerplate project
Stars: ✭ 25 (+25%)
Mutual labels:  mongodb, express

Shopify MERN App - Developer Guide

Prerequisites

Note: If you are new to Node or Express, I recommend to watch Node.js and Express 101 screencast by Alex Ford that teaches Node and Express from scratch. Alternatively, here is another great tutorial for complete beginners - Getting Started With Node.js, Express, MongoDB.

Features

  • Shopify Polaris newest version.
  • Shopify Express
    • Authenticate with Shopify
    • Usage of Shopify API
    • Shopify Webhook
  • React ^16.3
  • Hot Reload React app
  • Full ES6 support for both Server and Client
  • MongoDB model

Todos

  • Add GraphQL
  • Add Server side render

Getting Started

The easiest way to get started is to clone the repository:

# Go to you Workspace
cd /path-to-your-workspace

# Clone the project
git clone this-project-url

# Change directory
cd project-dir

# Install NPM dependencies
yarn install

# Copy .env.example to .env
cp .env.example .env

# Then simply start your app
yarn dev

Warning: While working with Shopify, it require https, you might need to download ngrok. You must start ngrok after starting the project.

# start ngrok to intercept the data exchanged on port 8080
./ngrok http 8080

Next, you must use the https url defined by ngrok, for example https://minhpt.ngrok.io

Replace it with BASE_URL defined in .env.example file.

Project Structure

Name Description
src/server Backend Server app
src/client Client React app
assets Static assets (fonts, css, js, img) / Client build dir
dist Server built app
.dockerignore Folder and files ignored by docker usage.
.env.example Your API keys, tokens, passwords and database URI.
.eslintrc Rules for eslint linter.
.gitignore Folder and files ignored by git.
.travis.yml Configuration files for continue integration.
index.js The main application file.
src/router.js The main application Router file.
docker-compose.yml Docker compose configuration file.
Dockerfile Docker configuration file.
package.json NPM dependencies.

Setting up Shopify development app

Create an Shopify app in Shopify Partner

Get the SHOPIFY_APP_KEY and SHOPIFY_APP_SECRET in App info and update the .env file.

Update the Whitelisted redirection URL(s) to https://your-domain.ngrok.com/shopify/auth/callback

Save and go to https://your-domain.ngrok.com/shopify/auth?shop=your-shop.myshopify.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].