diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 171e2d2a8..930afce11 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,4 +1,9 @@ { "name": "Anythink Development Container", - "image": "public.ecr.aws/v0a2l7y2/wilco/anythink-devcontainer:latest" + "image": "public.ecr.aws/v0a2l7y2/wilco/anythink-devcontainer:latest", + "customizations": { + "vscode": { + "extensions": ["GitHub.copilot", "GitHub.copilot-chat"] + } + } } diff --git a/backend/routes/api/comments.js b/backend/routes/api/comments.js new file mode 100644 index 000000000..47b0bc591 --- /dev/null +++ b/backend/routes/api/comments.js @@ -0,0 +1,5 @@ +const router = require("express").Router(); +const mongoose = require("mongoose"); +const Comment = mongoose.model("Comment"); + +module.exports = router; diff --git a/backend/routes/api/index.js b/backend/routes/api/index.js index 380d027cb..9f23863b6 100644 --- a/backend/routes/api/index.js +++ b/backend/routes/api/index.js @@ -4,6 +4,7 @@ router.use('/', require('./users')); router.use('/profiles', require('./profiles')); router.use('/items', require('./items')); router.use('/tags', require('./tags')); +router.use('/comments', require('./comments')); router.use('/ping', require('./ping')); router.use(function(err, req, res, next){ diff --git a/readme.md b/readme.md index 3ff175d70..f587abe8d 100644 --- a/readme.md +++ b/readme.md @@ -12,6 +12,10 @@ When implementing a new feature or fixing a bug, please create a new pull reques ### Using Codespace 1. run `docker compose up` +### On your local machine +1. [Install Docker](https://docs.docker.com/get-docker/) +2. [Install Docker Compose](https://docs.docker.com/compose/install/) +3. Run `docker compose up`. ## Tests Documentation about running the End to End test can be found under the `/tests` directory