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 use
in this directory to use a compatible version of nodejs. - Run
docker-compose up -d
in this directory to start up mongodb in docker. - Copy
example.env.local
to.env.local
. - Run
npm run dev
to run in development mode. - Create the
warehouse
andstorage
folders for assets storage.
- Setup node.js.
- Setup mongodb.
- Setup elasticsearch.
- Run
npm i
to install dependencies. - If
sharp
package does issues, runnpm i
innode_modules/sharp
to compile it. - Copy
example.env.local
to.env.local
. - Create the
warehouse
andstorage
folders for assets storage. - Run
npm run dev
to 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