https://github.com/ungdev/cassiopee-bouffe-api
API Bouffe à destination du Gala
https://github.com/ungdev/cassiopee-bouffe-api
Last synced: 12 months ago
JSON representation
API Bouffe à destination du Gala
- Host: GitHub
- URL: https://github.com/ungdev/cassiopee-bouffe-api
- Owner: ungdev
- License: mit
- Created: 2021-05-01T21:31:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-14T14:06:46.000Z (about 5 years ago)
- Last Synced: 2025-02-15T00:19:01.932Z (over 1 year ago)
- Language: TypeScript
- Size: 611 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cassiopée Bouffe API
[](https://github.com/ungdev/cassiopee-bouffe-api/actions/workflows/ci.yml)
[](https://codecov.io/gh/ungdev/cassiopee-bouffe-api)
API web à destination des services de la bouffe de cassiopée
## Requirements
- [Node.js](https://nodejs.org/)
- [yarn](https://yarnpkg.com/)
## Installation
```
git clone git@github.com:ungdev/cassiopee-bouffe-api.git
# or
git clone https://github.com/ungdev/cassiopee-bouffe-api.git
cd cassiopee-bouffe-api
# Install all the dependencies
yarn
```
Then, connect to your database (MySQL/MariaDB) and enter
```
CREATE DATABASE bouffe CHARACTER SET utf8;
```
Create the tables
```
DATABASE_URL="mysql://user:password@localhost/bouffe" yarn prisma db push --preview-feature
```
Generate the prisma client (redo this command when you update schema.prisma)
```
yarn prisma generate
```
## Configuration
Copy the file .env.example to .env and then edit it with your values :
```
cp .env.example .env
```