Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-replicache-app

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-replicache-app

![Replicache logo](https://uploads-ssl.webflow.com/623a2f46e064937599256c2d/6269e72c61073c3d561a5015_Lockup%20v2.svg)

  • 0.1.6
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Replicache logo

replicache-quickstarts

This repository contains quickstarts and sample code for Replicache. There are multiple option to run various frontend framework with a common express server backend. The backend utilizes the replicache-express library which implements the push, pull, poke, createSpace, and spaceExists handlers required for Replicache sync protocol. This library intends to help developers easily experiment with various frontend frameworks integrated with Replicache.

1. Setup

Get your Replicache License Key
$ npx replicache get-license
Set your VITE_REPLICACHE_LICENSE_KEY environment variable
$ export VITE_REPLICACHE_LICENSE_KEY="<your license key>"
Install and Build
$ npm install; npm run build;

2. Decide on a framework and start frontend and backend watcher

react
$ cd ./client/react && npm run watch

Provides an example integrating replicache with react in a simple todo application.

ts-web-component

Provides an example integrating replicache with vanilla typescript in a simple todo application. This library utilizes W3C standard web-components. It does not have any requirements to run any external library frameworks.

$ cd ./client/ts-web-component && npm run watch

Production mode

The server can serve the output of the various frameworks and be run as a static server to simulate a production environment.

$ cd ./client/<framework> && npm run prod

Deploying to Render

A render blueprint example is provided to deploy the application.

$ cp render.yaml.example render.yaml

Open the YAML file and modify the following lines to the appropriate framework

name: replicache-quickstarts-todo-<framework> # change e.g. (replicache-quickstarts-todo-<framework>)
startCommand: "cd ./client/<framework> && npm run prod" 

Commit the changes and follow the direction on Deploying to Render

Upcoming Frameworks

  • React Native
  • Svelte
  • SolidJS
  • Vue

FAQs

Package last updated on 03 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc