Projet SI M1
Start :
$ yarn install
$ yarn start
Environement
You can create .env
to set environement variables.
Server variables
PORT
: port of the server (by default8080
)HOSTNAME
: hostname of the server (by default0.0.0.0
)NODE_ENV
: Type of environment nodejs,local
orproduction
(by defaultlocal
)TIMEZONE
: IANA Timezone used by the server (by defaultEtc/GMT-1
)
MongoDB variables
MONGO_HOST
: Hostname of mongodb server (by defaultlocalhost
)MONGO_PORT
: port of mongodb server (by default27017
)MONGO_DB
: Database to use in mongodb server (by defaultSI
)MONGO_USER
: Username to use to connect at the database (not required)MONGO_PASSWORD
: Database user password (not required)
MariaDB variables
MARIA_HOST
: Hostname of mariadb server (by defaultlocalhost
)MARIA_PORT
: port of mariadb server (by default3306
)MARIA_DB
: Database to use in mariadb server (by defaultSI
)MARIA_USER
: Username to use to connect at the database (by defaultroot
)MARIA_PASSWORD
: Database user password (not required)MARIA_LOG
: Set totrue
if you want to log every queries (not required)
Neo4j variables
NEO_HOST
: Hostname of neo4j server (by defaultlocalhost
)NEO_PORT
: port of neo4j server (by default7687
)NEO_USER
: Username to use to connect at the database (by defaultneo4j
)NEO_PASSWORD
: Database user password (by defaultneo4j
)NEO_PROTOCOL
: Protocol to use to deal with neo4j server (by defaultbolt
)
Scripts
build
: Build the applicationlint
: Lint src folderstart
: Start server and watch changed filesstart:client
: Start client (React)start:build:
Start application from javascript