Skip to content

Here we have a rest api that expose and endpoint to show a message, then we are consuming that endpoint from an android application

Notifications You must be signed in to change notification settings

ealipio/nativescript-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nativescript example application

Here we have a rest api that expose and endpoint to show a message, then we are consuming that endpoint from an android application

server

To run the server follow the comands below:

# install depencies ( I prefer this alias )
npm i
# build the server
npm run server:build
# start the application in development environment
npm run server:start

client

Note: you should install an emulator before run this commands.

cd client/
# install depencies
npm i
# add android platform
tns platform add android
# edit src/app/api.service api property with your ip address
# after connect an android device with USB debugging or install an emulator of android
tns run android
# now you will see: "Holly Molly" in the console log :) yey!

I recommend to run client and server in a diferent vsCode window (codelyzer works well in that way)

We are using the following software version:

  • angular 7
  • nativescript v5.0.0
  • angular cli v7.0.6
  • nodejs v10.13.0
  • typescript 3.1.6

About

Here we have a rest api that expose and endpoint to show a message, then we are consuming that endpoint from an android application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published