Skip to content

Open source and eco-designed ERP solution for worker-owned businesses.

License

Notifications You must be signed in to change notification settings

zhangleizhl90/permacoop

 
 

Repository files navigation

Fairness

Permacoop is an open source and eco design ERP solution reserved for worker-owned business.

GitHub Workflow Status codecov Scrutinizer Code Quality Codacy Badge GitHub release (latest by date) GitHub license

Technical stack

Prerequisites

You must have PostgreSQL installed, or Docker and Docker Compose to run PostgreSQL using the provided docker-compose.yml.

Ensure you have Node.js 16.x and node-gyp installed globally (npm install -g node-gyp).

Quickstart

First, install dependencies:

make install

Then start the servers, database and other services:

make start

In a separate terminal, run database migrations:

make database-migrate

Then, you can seed the database with fake data

make seed-database

This command will create the default user "John Doe" :

{
  "email": "john@doe.com",
  "password": "john"
}

The server and client will be started:

Helpers

To view all available commands, run:

make help

Building and serving

To serve the built server and client locally, run:

make build
make start-dist

Tests

To run tests, use:

make test

For E2E tests, you will need to install additional dependencies first:

make install-client-e2e

Run E2E tests using:

make test-client-e2e

Code quality

To run automatic code formatting, run:

make format

To run linters and code checks, use:

make linter

Database migrations

To generate a migration from the current state of the code, run:

make database-migration NAME=add_some_column

Security

The client must send the user apiToken in the Authorization header when making requests to protected resources : Authorization: Bearer <apiToken>

To retrieve the apiToken, make a post request on /login with a user email and password.

Features

  • Tasks management
  • Projects management
  • Customers management
  • Calendar (timesheets etc.)
  • Human Resources
    • Meal tickets
    • Leaves
    • Cooperators / employee
    • Savings records
  • Accounting
    • Quotations
    • Daily rates
    • Invoicing
  • Contacts managment

Credits

Created by Fairness

License

MIT

About

Open source and eco-designed ERP solution for worker-owned businesses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 78.2%
  • Svelte 17.0%
  • JavaScript 3.2%
  • Makefile 0.7%
  • Jinja 0.4%
  • CSS 0.3%
  • Other 0.2%