server/README.md

43 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2023-11-07 17:49:47 +00: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.
2020-08-01 16:14:47 +00:00
## Requirements
2023-11-07 17:49:47 +00:00
- Runtime: Node.js >= 12.18.2
- Package manager: Yarn >= 1.17 - [Installation Page](https://classic.yarnpkg.com/en/docs/install)
- 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)
2020-07-11 22:42:00 +00:00
## Installation
2020-08-01 16:14:47 +00:00
Before using the server you have to install all the packages required
Use the `yarn install` command at the root (take a long time)
2020-08-03 16:31:02 +00:00
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`
2020-08-01 16:14:47 +00:00
## 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 :
```json
{
2023-11-07 17:49:47 +00:00
"express-redis-cache": "portal:./../../express-redis-middleware/",
}
```