Back end server for fLotte
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
leonnicolas 9aa94a33ce
src: added skeleton
4 years ago
src src: added skeleton 4 years ago
.gitignore initial commit 4 years ago
Dockerfile initial commit 4 years ago
README.md gulpfile.js: only use gulp and gulp-nodemon (instead of nodemon) for watching file changes 4 years ago
gulpfile.js src: added skeleton 4 years ago
package-lock.json gulpfile.js: only use gulp and gulp-nodemon (instead of nodemon) for watching file changes 4 years ago
package.json gulpfile.js: only use gulp and gulp-nodemon (instead of nodemon) for watching file changes 4 years ago
tsconfig.json initial commit 4 years ago
tslint.json gulpfile.js: only use gulp and gulp-nodemon (instead of nodemon) for watching file changes 4 years ago

README.md

API-server

Apollo server written in typescript that handles business logic.

Usage

Docker

docker build -t <image name> .
docker run --rm -p 4000:4000 <image name>

The Dockerfile is pretty stupid and could produce a smaller image, e.g. with multistage build.

Compile and run

Install gulp if not installed

npm -g gulp
npm install
gulp
npm start

For Development

Install node_modules and gulp

npm -g gulp
npm install

And start gulp in watch mode

gulp watch

This will watch *.ts files in ./src and recompile to ./dist and finally restart the server.