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

startupjs

Package Overview
Dependencies
Maintainers
6
Versions
574
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

startupjs

React Native + Web + Node.js full-stack framework

  • 0.9.0
  • npm
  • Socket score

Version published
Weekly downloads
177
decreased by-56.83%
Maintainers
6
Weekly downloads
 
Created
Source

StartupJS

React Native + Web + Node.js full-stack framework

Requirements

  1. Node >= 12.0
  2. Yarn
  3. MongoDB 4.0
  4. Redis 5.0

OR

  1. Docker (See Docker development section for details)

Quick start

  1. Initialize a new boilerplate project. Change myapp to your project name (use lower case)
npx startupjs init myapp --version=latest && cd myapp
  1. Start server (in a separate terminal tab)
yarn server
  1. Start web (in a separate terminal tab). Open http://localhost:3000
yarn web
  1. Start metro, if you want to develop native iOS or Android apps (in a separate terminal tab)
yarn metro
  1. Run android (in a separate terminal tab)
yarn android
  1. Run ios (in a separate terminal tab)
yarn ios

Docker development

Alternatively you can run a docker development image which has node, yarn, mongo and redis already built in. You only need docker for this. And it works everywhere -- Windows, MacOS, Linux.

Keep in mind though that since docker uses its own driver to mount folders, performance (especially when installing modules) might be considerably slower compared to the native installation when working with the large amount of files.

  1. Initialize a new project (change awesomeapp at the end to your app name):
docker run --rm -it -v ${PWD}:/ws:delegated startupjs/dev init awesomeapp
  1. Go into the created project folder. Then run the development docker container with:
./docker
  1. While inside the running container, start your app with:
yarn start

Open http://localhost:3000 and you should see your app.

  1. You can quickly exec into the running container from another terminal window using:
./docker exec

Packages

App

Backend

Bundler

CLI

Cron

Init

Model

Offline

ORM

React sharedb

Routes middleware

Server

FAQs

Package last updated on 19 Nov 2019

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