30 lines
No EOL
685 B
Markdown
30 lines
No EOL
685 B
Markdown
# API/Serveur - associations.espacecondorcet.org
|
|
|
|
## Requirements
|
|
|
|
- Node.js >= 12.18.2
|
|
- Yarn >= 1.17 - [Installation Page](https://classic.yarnpkg.com/en/docs/install)
|
|
- MongoDB >= v4.2.8
|
|
- A SMTP server
|
|
- A S3 Bucket
|
|
|
|
## Installation
|
|
|
|
Before using the server you have to install all the packages required
|
|
|
|
Use the `yarn install` command at the root (take a long time)
|
|
|
|
Then you have to fill the `.env`. We advise you to copy and paste the `.env.example` file as a example for the real `.env`
|
|
|
|
|
|
## Usage in a development environment
|
|
|
|
`yarn serve`
|
|
|
|
## Compilation before use in a production environment
|
|
|
|
`yarn build && yarn assets`
|
|
|
|
## Usage in a production environment
|
|
|
|
`yarn serve` |