You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tomit4 29d94a580c :white_check_mark: Finished updating backend tests, profile/score now works пре 2 година
backend :white_check_mark: Finished updating backend tests, profile/score now works пре 2 година
deployment :gear: syncd changes with what's working on the remote пре 3 година
docs :wrench: renaming matches to pairview and created messagesview пре 3 година
frontend :pencil2: Removed old console.log and testing button пре 2 година
public :recycle: total reorg of survey questions | redid mock data for better detail пре 4 година
.drone.yml :gear: tweaking remot branch setting пре 3 година
.gitignore :bug: Addressing reveal bug, in progress... пре 3 година
README.md :recycle: updating readme for nodev isntructions | failing gracefully for certain nodev survey edge cases | tweaked onmessage log response пре 4 година

README.md

:fist: SIIMEE

Build Status

Almost everything you need to develop.

:wrench: Tooling

Node.js and npm

We use javascript here. .eslintrc and .prettierrc configs are provided to help make your code nice to read.

Docker and docker-compose

Docker manages packaging for development and testing, environment variable things, and not much else.

git

We use git for source control but you knew that already.

:pencil: Full Documentation

See ./docs

:battery: Installation & Getting Started

  1. Navigate to the ./backend directory and run npm install to install backend dependencies
  2. Copy the server environmental variables sample file from ./server/.env.sample and remane it to ./server/.env
  3. Start the minimal docker-compose file provided to bootstrap a development database using the command docker-compose --env-file ./server/.env up -d
  4. Create tables and populate the database with some test data using npm run migrate and npm run seed from the ./backend directory
  5. Start the backend using npm run start
  6. Navigate to the ./frontend directory and run npm install
  7. Start the frontend development server with npm run dev or npm run nodev if you want to remove restrictions on logging in and profile completeness
  8. User a web browser to check http://localhost:3000

:ship: CI/CD

Included is a drone config, and some recommended steps to build.

  • You MUST activate the pipeline
  • Add the id_rsa of the drone host to appropriate key in the pipeline secrets under the name push_deploy_key

You also need to setup a post-receive hook on the host server.

  • On your development machine, add the target host as a remote git remote add </opt/staging/siimee.git> staging master
  • Login to the remote machine and setup a bare git repo on git init --bare </opt/staging/siimee.git>
  • Copy the post-receive hook file into the </opt/staging/siimee.git/hooks/> directory

:satellite: Technology

Frontend

See ./frontend/README.md

Backend

See ./backend/README.md

Database

Designed around MariaDB hosted by: PlanetScale

:scroll: License

UNLICENSED