The server that run the back-end and the rendering of public pages
Find a file
2023-11-07 19:11:28 +01:00
assets feat(Home): better shuffle management 2020-09-06 12:25:25 +02:00
src feat(public): add slugs array to organization json 2022-09-06 12:01:37 +02:00
views feat: return json format of organization page with .json extension and 2022-09-02 19:21:24 +02:00
.editorconfig feat: add .editorconfig 2022-09-02 19:23:08 +02:00
.env.example feat: proposed cache WIP ? 2020-09-03 00:25:13 +02:00
.gitignore chore: add .yarnrc.yml 2022-09-05 16:53:51 +02:00
.yarnrc.yml chore: add .yarnrc.yml 2022-09-05 16:53:51 +02:00
curl-format.txt Merge branch 'master' of github.com:lefuturiste/condorcet-associations-server into master 2020-09-06 11:26:54 +02:00
deploy.sh fix: update deploy 2020-09-03 17:16:03 +00:00
ecosystem.config.js feat: pm2 support and start script for production env 2020-07-26 13:43:13 +00:00
gulpfile.js add countdown and some bug fixes like csv 2020-07-30 12:54:53 +00:00
LICENSE add GPL LICENSE 2023-11-07 19:11:28 +01:00
nodemon.json update 2020-07-15 20:32:42 +00:00
package.json fix: lib lefuturiste/express-redis-middleware 2022-09-05 15:40:11 +02:00
presentation.md update 2020-07-15 20:32:42 +00:00
README.md docs: update README and TODO 2023-11-07 18:49:47 +01:00
README_fr.md feat: README 2020-08-03 18:31:02 +02:00
start.sh feat: pm2 support and start script for production env 2020-07-26 13:43:13 +00:00
test_mail.js fix: change name of the website to "Annuaire des associations" 2021-03-05 22:19:22 +01:00
TODO.md docs: update README and TODO 2023-11-07 18:49:47 +01:00
tsconfig.json feat: add media controller s3 sandbox, css integration, js menu and filter... 2020-07-04 23:25:25 +02:00
yarn.lock fix: lib lefuturiste/express-redis-middleware 2022-09-05 15:40:11 +02:00

PageAssos API/Back-end server

This is the code that run the Node.js back-end that allow public-pages website rendering and the API used by the front-end panel.

Requirements

  • Runtime: Node.js >= 12.18.2
  • Package manager: Yarn >= 1.17 - Installation Page
  • Database: MongoDB >= v4.2.8
  • Emails: any SMTP server (to send emails to organizations)
  • Object storage: S3-compatible bucket (to store assets uploaded by organizations)

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

Random notes

For lefuturiste/express-redis-middleware in package.json, if you want to do local development for the cache lib :

{
  "express-redis-cache": "portal:./../../express-redis-middleware/",
}