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.

32 lines
626 B
Markdown

4 years ago
# API-server
Apollo server written in typescript that handles business logic.
## Usage
### Docker
```bash
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
4 years ago
Install gulp if not installed
```bash
npm -g gulp
```
```bash
npm install
gulp
npm start
```
### For Development
Install node_modules and gulp
4 years ago
```bash
npm -g gulp
npm install
4 years ago
```
And start gulp in watch mode
4 years ago
```bash
gulp watch
4 years ago
```
This will watch *.ts files in _./src_ and recompile to _./dist_ and finally restart the server.