2023-07-22 16:34:23 +02:00
|
|
|
<h1 align="center"><a href="https://thream.theoludwig.fr/">Thream/website</a></h1>
|
2021-10-24 05:19:39 +02:00
|
|
|
|
|
|
|
<p align="center">
|
2021-10-24 05:48:06 +02:00
|
|
|
<a href="./CONTRIBUTING.md"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" /></a>
|
2021-10-24 05:19:39 +02:00
|
|
|
<a href="./LICENSE"><img src="https://img.shields.io/badge/licence-MIT-blue.svg" alt="Licence MIT"/></a>
|
2021-10-24 05:48:06 +02:00
|
|
|
<a href="./CODE_OF_CONDUCT.md"><img src="https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg" alt="Contributor Covenant" /></a>
|
|
|
|
<br />
|
|
|
|
<a href="https://github.com/Thream/website/actions/workflows/analyze.yml"><img src="https://github.com/Thream/website/actions/workflows/analyze.yml/badge.svg?branch=develop" /></a>
|
|
|
|
<a href="https://github.com/Thream/website/actions/workflows/build.yml"><img src="https://github.com/Thream/website/actions/workflows/build.yml/badge.svg?branch=develop" /></a>
|
|
|
|
<a href="https://github.com/Thream/website/actions/workflows/lint.yml"><img src="https://github.com/Thream/website/actions/workflows/lint.yml/badge.svg?branch=develop" /></a>
|
|
|
|
<a href="https://github.com/Thream/website/actions/workflows/test.yml"><img src="https://github.com/Thream/website/actions/workflows/test.yml/badge.svg?branch=develop" /></a>
|
|
|
|
<br />
|
2021-10-24 05:19:39 +02:00
|
|
|
<a href="https://conventionalcommits.org"><img src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg" alt="Conventional Commits" /></a>
|
2021-10-24 06:09:43 +02:00
|
|
|
<a href="https://github.com/semantic-release/semantic-release"><img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg" alt="semantic-release" /></a>
|
2021-10-24 05:19:39 +02:00
|
|
|
</p>
|
|
|
|
|
|
|
|
## 📜 About
|
|
|
|
|
2021-10-24 05:48:06 +02:00
|
|
|
Thream's website to stay close with your friends and communities.
|
2021-10-24 05:19:39 +02:00
|
|
|
|
2023-07-22 16:34:23 +02:00
|
|
|
It uses [Thream/api](https://github.com/Thream/api) [v1.2.8](https://github.com/Thream/api/releases/tag/v1.2.8).
|
2021-10-24 06:09:43 +02:00
|
|
|
|
2021-10-24 05:19:39 +02:00
|
|
|
## ⚙️ Getting Started
|
|
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
2021-10-24 06:09:43 +02:00
|
|
|
- [Node.js](https://nodejs.org/) >= 16.0.0
|
|
|
|
- [npm](https://www.npmjs.com/) >= 8.0.0
|
2021-10-24 05:19:39 +02:00
|
|
|
|
|
|
|
### Installation
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# Clone the repository
|
2023-07-02 19:36:23 +02:00
|
|
|
git clone git@github.com:Thream/website.git
|
2021-10-24 05:19:39 +02:00
|
|
|
|
|
|
|
# Go to the project root
|
|
|
|
cd website
|
|
|
|
|
|
|
|
# Configure environment variables
|
|
|
|
cp .env.example .env
|
|
|
|
|
|
|
|
# Install
|
2023-07-22 16:34:23 +02:00
|
|
|
npm clean-install
|
2021-10-24 05:19:39 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
You will need to configure the environment variables by creating an `.env` file at
|
|
|
|
the root of the project (see `.env.example`).
|
|
|
|
|
|
|
|
### Local Development environment
|
|
|
|
|
|
|
|
```sh
|
|
|
|
npm run dev
|
|
|
|
```
|
|
|
|
|
|
|
|
### Production environment with [Docker](https://www.docker.com/)
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# Setup and run all the services for you
|
2022-05-12 20:35:46 +02:00
|
|
|
docker compose up --build
|
2021-10-24 05:19:39 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Services started
|
|
|
|
|
2023-05-13 20:28:24 +02:00
|
|
|
- `website`: <http://127.0.0.1:3000>
|
2021-10-24 05:19:39 +02:00
|
|
|
|
|
|
|
## 💡 Contributing
|
|
|
|
|
|
|
|
Anyone can help to improve the project, submit a Feature Request, a bug report or
|
|
|
|
even correct a simple spelling mistake.
|
|
|
|
|
|
|
|
The steps to contribute can be found in [CONTRIBUTING.md](./CONTRIBUTING.md).
|
|
|
|
|
|
|
|
## 📄 License
|
|
|
|
|
|
|
|
[MIT](./LICENSE)
|