Automation platform of his digital life
๐ Homepage
Each subfolders contains its own README.md
.
โโโ server - Back-end server with business logic of AREA
โโโ webapp - Front-end Angular web application
โโโ mobile - Front-end Xamarin mobile application
If you want to develop on the server or the webapp, here is how to get started.
Here comes a little surprise: You need Node.JS and docker-compose.
$ npm install
$ cd server && npm install
$ cd webapp && npm install
In the docker-compose.yml, in the db
service, add a field ports
to expose the default database port.
For PostgreSQL, the default port is 5432.
ports:
- '8081:5432'
First, load environment variables used in docker-compose.yml with this command :
$ source .travis/.env
$ docker-compose up --build db
We use the well-known dotenv to pre-load environment variables in the server.
ENV= # actually usused
DB= # must be postgres
DB_USER= # must be the same as POSTGRES_USER in docker-compose.yml
DB_PASSWORD= # must be the same as POSTGRES_PASSWORD in docker-compose.yml
DB_HOST= # must be localhost
DB_PORT= # must be the same as in 3. chapter
$ cd server
$ npm run dev
$ cd webapp
$ npm start
npm run commit
, prompt you to fill out any required commit fields at commit time, to format your commits messages. With husky and lint-staged, it also run linters on git staged files.
npm run prettify
, lint all files following rules wrote in .prettierrc.
npm run release
, automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org.