Giter VIP home page Giter VIP logo

clio's Introduction

Clio

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with (only the first time) mix ecto.reset
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

Building the Client code

Getting the dependencies:

  • Make sure you have node and npm installed
  • Go to assets folder
  • Run npm install to download the dependencies (node_modules folder and package-lock.json will be created in the assets folder)

Starting the build process and serving the code:

  • For Development: in assets folder run npm run ssr:watch. This will first clear the static folder, then copy the rendering server and finally will build both the server side and the client side bundles and stay in watch mode to rebuild the bundles on saving a file change. To open the application: in a different console start the node server in the assets folder by running the npm run serverssr. Then in a third console start the Phoenix server by running the mix phx.server command in the root directory. Open the browser at http://localhost:4000.

  • For Production in assets folder run npm run ssr and provide environment variables. Get the static folder and copy it to the corresponding folder on the production server. Then you must start the node server.

Passing environment variables when building the bundles:

To pass environmental variables, set them after the script's name like in this example: npm run develop --port=8081 --host=http://localhost --apiurl=http://localhost:4000/. If not provided, default values will be used (set in webpack config files)

Learn more about Frontend technologies stack

clio's People

Watchers

 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.