acoach! (input your name suggestion here)
Welcome to our monorepo :D
For contributing guidelines, please check CONTRIBUTING.md or CODE.md for coding styles.
We use PostgreSQL for database queries, to install:
After install PostgreSQL create a database;
➜ acoach git:(main) ✗ psql
psql (12.2)
Type "help" for help.
acoach=# CREATE DATABASE acoach;We use knex migrations, so to create your db
you can just run knex migrate:up, our use the scripts in scripts/ path.
./scripts/migrate-up.shHello darkness, my old friend.
misc/ is where all sort of random things goes, like requirements, screenshots
ideas... basically, something that is not code related and may be used in future.
Our mobile app is written in react-native (expo)
cd mobile
npm install
npm startWe currently have only one app server side written in Node.js, it lives in nodejs/
and has a package.json that will be shared between the possible other apps
(or microservices if you like)
To install dependencies, just run npm install in the nodejs/ path.
cd nodejs
npm installAfter install dependencies, configure your .env file:
cp .env.sample .env
vi .envthe api app, is what will be receiving all requests from outside world, run it
in the default port or change it in the web/src/config.js too.
To run, simple call the app.js file;
all our nodejs test cases lives here, we use mocha to run our tests in
nodejs land
scripts/ has some utilities scripts, like easy way to run knex inside
node_modules and run-tests.sh to run all tests at once, easy pease.
node nodejs/api/app.jsIn web interface we have a simple create-react-app, to run locally you can just:
cd web
npm install
npm startOur little acoach is published under no-license, use it at your own will :)