assembleco / slim

A (slim) System for Laboratory Information Management
https://stoic-pare-ea69d2.netlify.com/
0 stars 1 forks source link

Generic server #15

Closed c-lliope closed 6 years ago

c-lliope commented 6 years ago

No way around it. We need to set up a generic server that can handle requests from frontend app.

We can create a new repo for it at assembleapp/engine. We can use this issue to track its initial features, then switch over to that repo's issue tracker once it's able to stand on its own.

We can use the server to distinguish between the "development" and "production" environments. In "production", the server is configured to connect directly to Accupac's databases. In "development", the server connects to local databases filled with test data.

We should start by hard-coding the behavior for dev mode, just so this doesn't block the frontend development too heavily. After that, we can start to gradually build up the server's functionality.

c-lliope commented 6 years ago

Useful links for the server:

c-lliope commented 6 years ago

Scrapping all of this, copy/pasted code from https://github.com/mattyayoh/nimbuspos.

$ curl -X POST http://localhost:3000/evaluate -H "Content-Type: application/json" -d '{ "code": "2 + 2" }'
4⏎
c-lliope commented 6 years ago
$ brew install postgresql
$ brew services start postgresql
MattyAyOh commented 6 years ago

dirty copy-paster

On Tue, Jun 12, 2018 at 2:27 PM Grayson Wright notifications@github.com wrote:

Scrapping all of this, copy/pasted code from https://github.com/mattyayoh/nimbuspos.

$ curl -X POST http://localhost:3000/evaluate -H "Content-Type: application/json" -d '{ "code": "2 + 2" }' 4⏎

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/assembleapp/slim/issues/15#issuecomment-396740014, or mute the thread https://github.com/notifications/unsubscribe-auth/AFGDVT1gw0ymxITIjAYPt_KcsxzwS2ynks5t8DJBgaJpZM4Ukdjq .

c-lliope commented 6 years ago

¯_(ツ)_/¯

MattyAyOh commented 6 years ago

\ \ you dropped this

On Tue, Jun 12, 2018 at 2:38 PM Grayson Wright notifications@github.com wrote:

¯(ツ)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/assembleapp/slim/issues/15#issuecomment-396743079, or mute the thread https://github.com/notifications/unsubscribe-auth/AFGDVS8QT3uQQ3jBMSfT17272lfF4BBfks5t8DTJgaJpZM4Ukdjq .

c-lliope commented 6 years ago

Fine, ya stickler. ¯\_(ツ)_/¯

MattyAyOh commented 6 years ago

On Tue, Jun 12, 2018 at 2:40 PM Grayson Wright notifications@github.com wrote:

Fine, ya stickler. ¯_(ツ)_/¯

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/assembleapp/slim/issues/15#issuecomment-396743662, or mute the thread https://github.com/notifications/unsubscribe-auth/AFGDVQM2-M1flF-VyBWR6YEaMwil0Jw9ks5t8DVQgaJpZM4Ukdjq .