Coder Social home page Coder Social logo

ldaniels528 / socialize Goto Github PK

View Code? Open in Web Editor NEW
10.0 4.0 5.0 1.65 MB

A Social networking portal written using Scala, JavaScript and Node

Home Page: https://github.com/scalajs-io

License: Apache License 2.0

Scala 16.64% JavaScript 78.61% Shell 0.01% HTML 3.99% CSS 0.75%

socialize's Introduction

Socialized

Socialized is an example of a full-featured application, which has been developed to demonstrate two (of three) distinct use cases for MEANS.js:

  • Using MEANS.js to build a Play application (Scala.js + AngularJS front-end, Play and Scala RESTful backend).
  • Using MEANS.js to build a MEAN application (Scala.js + AngularJS front-end, Node and Scala.js RESTful backend).

Motivations

Learning a new framework or API can be difficult; however, the learning curve can be greatly reduced when one is provided with good examples. I figured what could be better than a full-fledged application as an example! Socialized also has been a great test bed for me in terms of ensuring that most of the features offered by the facade work as advertised.

Building the code

Build Requirements

Building the MEANS.js + Play application distributable (AngularJS frontend, Play backend)

To build the MEANS.js + Play application (distibutable .ZIP) do the following:

$ sbt "project playapp" dist

Running the MEANS.js + Play application (AngularJS frontend, Play backend)

Optionally, you could run the application directly from the sources:

$ sbt "project playapp" run

The above will startup the application on port 9000 by default.

Building the MEANS.js + Node application (AngularJS frontend, Node backend)

Prior to building the code, you need to install the bower and node modules. NOTE: You only need to perform this step once.

$ cd app-nodejs
$ npm install
$ bower install
$ cd ..

Now, you can compile the Scala.js sources to JavaScript by executing the following command:

$ sbt "project nodejs" fastOptJS

Running the MEANS.js + Node application (AngularJS frontend, Node backend)

$ cd ./app-node
$ node ./dev-server.js    

The above will startup the application on port 1337 by default. To listen/bind to a different port. Set the "port" environment variable.

$ export port=8000

Then (re)start the application.

socialize's People

Contributors

ldaniels528 avatar

Stargazers

Joe Graham avatar Rohan Verma avatar Hieu Thai avatar Hang Wu avatar Omeqagear avatar  avatar Nikolay Kravets avatar Lawrence Daniels avatar SwhGo_oN avatar  avatar

Watchers

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