lasthourcloud/CONTRIBUTION.md

43 lines
1.3 KiB
Markdown
Raw Normal View History

2022-11-07 21:44:47 +00:00
# Contributing
2022-09-02 18:46:24 +00:00
2022-11-07 21:44:47 +00:00
> "First, thanks for considering to contribute to my project.
It really means a lot! 😁" - [@andrasbacsai](https://github.com/andrasbacsai)
2022-09-02 18:46:24 +00:00
2022-11-07 21:44:47 +00:00
You can ask for guidance anytime on our
[Discord server](https://coollabs.io/discord) in the `#contribution` channel.
2022-09-02 18:46:24 +00:00
2022-11-07 21:44:47 +00:00
## 1) Setup your development environment
2022-11-07 21:44:47 +00:00
- 🌟 [Container based](docs/dev_setup/Container.md) ← *Recomended*
- 📦 [DockerContainer](docs/dev_setup/DockerContiner.md) *WIP
- 🐙 [Github Codespaces](docs/dev_setup/GithubCodespaces.md)
- ☁️ [GitPod](docs/dev_setup/GitPod.md)
- 🍏 [Local Mac](docs/dev_setup/Mac.md)
2022-09-02 18:46:24 +00:00
2022-11-07 21:44:47 +00:00
## 2) Basic requirements
2022-09-02 18:46:24 +00:00
2022-11-07 21:44:47 +00:00
- [Install Pnpm](https://pnpm.io/installation)
2022-11-07 21:44:47 +00:00
## 3) Setup Coolify
2022-09-02 18:46:24 +00:00
2022-11-07 21:44:47 +00:00
- Copy `apps/api/.env.example` to `apps/api/.env`
- Edit `apps/api/.env`, set the `COOLIFY_APP_ID` environment variable to something cool.
- Run `pnpm install` to install dependencies.
- Run `pnpm db:push` to o create a local SQlite database. This will apply all migrations at `db/dev.db`.
- Run `pnpm db:seed` seed the database.
- Run `pnpm dev` start coding.
2022-09-02 18:46:24 +00:00
2022-11-07 21:44:47 +00:00
```sh
# Or... Copy and paste commands bellow:
cp apps/api/.env.example apps/api.env
pnpm install
pnpm db:push
pnpm db:seed
pnpm dev
```
2022-09-02 18:46:24 +00:00
2022-11-07 21:44:47 +00:00
## 4) Start Coding
2022-09-02 18:46:24 +00:00
2022-11-07 21:44:47 +00:00
You should be able to access `http://localhost:3000`.
2022-09-02 18:46:24 +00:00
2022-11-07 21:44:47 +00:00
1. Click `Register` and setup your first user.