Code Monkey home page Code Monkey logo

pg-app-tynwrjdecdmr69ke5d8fec6ixljzx5's Introduction

Your SashiDo appname is: SashiDo-Demo App

How SashiDo & GitHub work together

This is the private repo for your application. Let us explain in breif how the Cloud Code works on SashiDo:

Developing of the Cloud Code

./cloud/main.js is the root file which we import on SashiDo's cloud. Don't change the name, if you want to run it. There are few simple examples there, so take a look of them :)

Hosting your website

public/ is the directory in which you can put your html, css, js, images files, in case you want to host your app website on SashiDo for example :)

Deploying to SashiDo

When you git push changes to the master branch of this repo, SashiDo automatically deploys the code to the servers that your app is working on. However, you don't need any additional tools to manage and deploy your Cloud Code on SashiDo :)

Remember every push to the master branch triggers a deploy. If you want to push you changes without triggering of a deploy, you can push them to the development branch for example and when you are done with all the changes ... just merge with the master branch.

Add collaborators to GitHub

And of course if you want to add a collaborator to this repo, go to SashiDo's Dashboard and add it as an app collaborator and SashiDo will add it here automatically.

Test Advanced Cloud Code locally on your computer

In order to test your Cloud Code locally, instead of pushing every time to the SashiDo's cloud when you want to test some code changes, you are able to run similar to the SashiDo's production Parse Server on your local computer and you'll see the changes and results immediately :)

1. Install NodeJS

The required version of NodeJS is >=4.3

2. Install and run MongoDB

3. Install your npm dependencies

If you want to use some specific npm packages you should add them to the package.json. After that you just need to run:

npm install

4. Customize Local app with Environment variables

If you need to customize you local app settings you are able to do it with ENV Variables:

  • DATABASE_URI Default: 'mongodb://localhost:27017/dev'
  • APP_ID Default: 'myAppId'
  • MASTER_KEY : Default: ''
  • SERVER_URL : Default: http://localhost:1337/1'
  • PORT : Default: 1337

If you want to change DATABASE_URI for example, run the following:

export DATABASE_URI=mongodb://localhost:27017/my_dev_db

5. Run your ParseServer + Cloud Code

Of course after 4 steps of configuring and installing it's time to start developing :) So ... write some code and run it with the following command:

npm start

That's it :) Happy coding :)

pg-app-tynwrjdecdmr69ke5d8fec6ixljzx5's People

Watchers

James Cloos 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.