The server that run the back-end and the rendering of public pages
| assets | ||
| src | ||
| views | ||
| .env.example | ||
| .gitignore | ||
| curl-format.txt | ||
| deploy.sh | ||
| ecosystem.config.js | ||
| gulpfile.js | ||
| nodemon.json | ||
| package.json | ||
| presentation.md | ||
| README.md | ||
| README_fr.md | ||
| start.sh | ||
| test_mail.js | ||
| tsconfig.json | ||
| yarn.lock | ||
API/Serveur - associations.espacecondorcet.org
Requirements
- Node.js >= 12.18.2
- Yarn >= 1.17 - Installation Page
- 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