An internal market evaluation tool for the UCSD Center for Community Health's Live Well Community Market program.
Feel free to use yarn ...
instead of npm run ...
, but make sure not to commit the yarn.lock
.
- Clone the repository:
git clone https://github.com/tritonse/live-weller
. - Navigate to the directory:
cd live-weller
. - Install the necessary dependencies:
npm install
. - Create a new
.env
file using.env.example
as a template:cp .env.example .env
. - Fill out the
.env
. See the example file below. - Run the containerized service(s), e.g. MongoDB:
docker-compose up -d
. - Start the Node app:
npm run dev
.
MONGO_URI=mongodb://localhost:27017/live-weller
Note: For Windows users, localhost
won't work—you'll need to set the host to the Docker Machine's IP address.
docker-compose up -d
to configure and run any required servicesnpm install
to install the necessary dependenciesnpm run dev
to run the Node app with Nodemonnpm run lint
to lint the Node app with ESLint (without--fix
)npm run test
to run the test suite with Jestnpm run lint:fix
to handle the simple linter issues automaticallydocker exec -it mongo.tse.local mongo
to access MongoDB
Take a look at package.json
for the actual commands.