Giter VIP home page Giter VIP logo

glitch-hello-loopback4's Introduction

Hello Loopback4 on Glitch

====================================================

====================================================

  1. [done] install Node.js
  2. [done] installed loopback version 4 using the following command:
pnpm install --save-dev @loopback/cli

Next Create a new Loopback4 project

  1. To create a new project, run the CLI as follow
  • First, open the Glitch console

  • Type the following command the console

    lb4 app
    
  • Answer the prompts as follows.

    [?] Project name: hello-loopback4
    [?] Project description: hello-loopback4
    [?] Project root directory: hello-loopback4
    [?] Application class name: HelloApplication
    [?] Select project build settings: Enable tslint, Enable prettier, Enable mocha, Enable loopbackBuild
    

    Choose features e.g.

Move the LB project files into the Glitch root

  • Move and edit the lb4 generated project files

    # move the lb4 generated project files
    mv ./hello-loopback4/README.md ./README-hello-loopback4.md
    
    # reference the generated README from this Glitch README
    sed -i '$a\
    [README-hello-loopback4](./README-hello-loopback4.md)' README.md
    
    mv ./hello-loopback4/{.[!.],}* .
    rm -r ./hello-loopback4
    
    # update to node version 10
    sed -i 's/>=8.9/10.x/' ./package.json
    
    # Sync Glitch console with the Glitch project
    refresh
    

Starting the project

  1. The project comes with a "ping" route to test the project. Let's try it out by running the projects.
  • Wait for Glitch project to finish rebuilding

  • In a browser, visit this Glitch remix

  • and with curl test the PING api

    curl -X GET "https://hello-loopback4-test01.glitch.me/ping" \
    -H  "accept: application/json"
    

Continue...

glitch-hello-loopback4's People

Contributors

glennschler avatar

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.