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 2c8a5ea6b7
src/model + src/schema: removed mandatory fields
4 years ago
.github/workflows Remove npm start from nodejs action 4 years ago
src src/model + src/schema: removed mandatory fields 4 years ago
.eslintrc.json Change semi rule to enforce semicolons 4 years ago
.gitignore Add RPC Client implementation 4 years ago
.travis.yml .travis.yml: fix docker push 4 years ago
Dockerfile Dockerfile: downgrade npm to fix build 4 years ago
LICENSE.md LICENSE.md: added license and copy right notice 4 years ago
README.md README.md: updated build status because of ne url path 4 years ago
gulpfile.js src/*: implemented update and action log on overwrites 4 years ago
package-lock.json cors allow all 4 years ago
package.json index.ts: schema without token 4 years ago
tsconfig.json typeorm: connected to postgres with typeorm 4 years ago

README.md

API-server

Apollo server written in typescript that handles business logic.

Build Status

Assumptions

Userserver and postgres are running e.g. with Julius' Docker Compose.

Usage

Docker

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

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.

Environment Variables

The following environment variables can be used to configure the server:

RPC_HOST=host:port
NODE_ENV=development/porduction
POSTGRES_CONNECTION_URL=postgres://username:password@host:port/database_name
  • RPC_HOST is used for the connection with the userserver.
  • NODE_ENV will not check authentication if set to development
  • POSTGRES_CONNECTION_URL for connection with the postgres database