Neggia / SEM

Shared Economy Marketplace featuring alternative currencies
GNU General Public License v3.0
1 stars 1 forks source link

Description

SEM SEM (Solidarity Economies Marketplace) Application starter repository.

Installation

$ npm install
$ cd client
$ npm install

Running the app

.env file in root folder needs the following vars:

DB_RELATIVE_PATH=data/sqlite.db
ADMIN_PASSWORD=test1234
OPENAI_API_KEY=sk-abc........................................xyz
NODE_ENV=test (or prd)
CORS_ORIGIN=http://localhost:3001
SERVER_PORT=3000

.env file in /client subfolder needs the following vars:

REACT_APP_NAME=Comunità Solidali
REACT_APP_SERVER_BASE_URL=http://localhost:3000/
# server (must run on port 3000)
$ npm run start

# client
$ cd client
$ npm start

Admin panel

Admin can login (with password set in .env file) to panel from homepage widget top-right , where they can set the crawling/parsing parameters:

Having both projects (backend and frontend) run in the background

When npm run start is launched from terminal , if the terminal gets closed , also the npm process terminates , since it is a child process. Npm needs to be launched in background then. A way to do it that is specific to Node JS , is by using the pm2 package.

Typically you will launch the SEM backend in background:

Support

SEM is an GPL 3-licensed open source project.

License

SEM is GPL 3 licensed.