We're using nvm to ensure that all people in the project use the same version of node.js, which is normally the latest LTS version. We're using docker for the database (and later probably the whole project).
- Run
nvm usein this directory to use a compatible version of nodejs. - Run
docker-compose up -din this directory to start up mongodb in docker. - Copy
example.env.localto.env.local. - Run
npm run devto run in development mode. - Create the
warehouseandstoragefolders for assets storage.
- Setup node.js.
- Setup mongodb.
- Setup elasticsearch.
- Run
npm ito install dependencies. - If
sharppackage does issues, runnpm iinnode_modules/sharpto compile it. - Copy
example.env.localto.env.local. - Create the
warehouseandstoragefolders for assets storage. - Run
npm run devto run in development mode.
ACCESSKEYID, SECRETACCESSKEY for AWS GOOGLEMAPSAPIKEY for google maps.
And other environment variables if needed.
- npm rebuild sharp
- npm rebuild node-sass