- Install Node.js dependencies:
npm install
- Create a
.envfile based on.env.example. - Start MongoDB locally and run:
npm start
/listingsshows all articles./listings/newopens the create form./listings/:idshows one listing./listings/:id/editopens the update form.
- Title is required and must be longer than 25 characters.
- Article is required and must be longer than 100 characters.
The app seeds sample listings automatically when the collection is empty.