Open bregySilvan opened 6 years ago
Nice working example of client-server communication. Decent info in the PR as well.
Will superagent be used within the angular app as well?
I seperated server and client to different apps because it doesn't make sense to open up a new issue for that.
In addition to that ts-node
command got added for executing the application.
@Christian-Seematter
I looked up some tools for making requests and superagent seemed to be the smartest and most flexible one to use.
@bregySilvan The client is now ready for the integration of the authentication. Cherio
@olinator98 Go ahead and create the PR for your client which is finished. We can merge your changes on the client first and afterward I can commit my login integration directly into #18.
Description
/login
location for authentication. Currently we send back true or false. Later this will be an access token.Technical details
/login
{ name: string, password: string}
{ success: boolean}
config.ts
Start application
Let's use
ts-node
instead oftsc
command. It compiles and executes.ts
files directly.ts-node
=>npm install ts-node -g
app/server
and runnpm start
app/client
and runnpm start
npm install
before first run, in both, server and client directoryNote
In general we should avoid hardcoding stuff directly in classes. Pls put all variable data into
config.ts
file. Locations should also be added there.