paphos

Version, currently master branch1 version
  • master branchlatestApr 8, 2023

github.com/PygmalionAI/paphos-backend

The official service back-end.

14 stars
0 dependents
License: not declared

Installation

# Add this to your shard.yml
dependencies:
  paphos:
    github: PygmalionAI/paphos-backend
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
1.7.2
Author
283
Target
  • app from src/paphos.cr

Dependencies

Runtime Dependencies

  • jwt~> 1.6.0github: crystal-community/jwt
  • avram~> 1.0.0-rc1github: luckyframework/avram
  • lucky~> 1.0.0-rc1github: luckyframework/lucky
  • carbon~> 0.3.0github: luckyframework/carbon
  • authentic~> 0.9.0github: luckyframework/authentic
  • lucky_env~> 0.1.4github: luckyframework/lucky_env
  • lucky_task~> 0.1.1github: luckyframework/lucky_task
  • carbon_sendgrid_adapter~> 0.3.0github: luckyframework/carbon_sendgrid_adapter

README

# paphos-backend

This is the core backend for the official Pygmalion service.

Very early work-in-progress, not usable in any capacity.

## Contributing

If you wish to contribute, this section contains some relevant information.

The stack is:

- [Crystal](https://crystal-lang.org/) as the language of choice
- [Lucky](https://luckyframework.org/) as the web framework
- [PostgreSQL](https://www.postgresql.org/) as the main database

To get started, you need all of the above installed and functional on your machine.

For development, the [default configuration](./config/database.cr) expects a `postgres` user with password `postgres` to be available. You can then create the databases manually, or use `lucky db.setup` to create them automatically I believe.

With PostgreSQL up and running and the development database created, you can boot up the development server:

```bash
$ lucky dev
```

The API should then be reachable at http://localhost:3000/. Routes are under `/api/v1` but are undocumented as of now, you'll need to [trek through the code](./src/actions/api/v1) to figure them out.

### Useful links

- [Lucky's official guides](https://luckyframework.org/guides/getting-started/installing): contains tutorials about the usual stuff (installation, route setup, handling data in the database, etc.)