This is the starter project for the final workshop in the WDCC series, where we will learn about MongoDB, add it to our backend, and then deploy our frontend, backend, and database!
IMPORTANT: You MUST FORK this repo - do NOT just clone the WDCC version, or you will not be able to deploy later! Make your own personal fork, which you'll be able to push to.
We have created Gists for this workshop, available at:
-
https://gist.github.com/andrew-meads/18dd7ce6a478dcab9ddf4706d37d7ef5
-
https://gist.github.com/andrew-meads/a54c6ed628e7794fced4e58feb152469
You can also checkout a branch with the completed version of this project, using:
git checkout steps/complete
Before we get started with the workshop itself, we'll make sure we have all the necessary software installed.
-
Node.js: you need to have this installed on your machine.
-
-
MongoDB Compass: you'll need this installed, to browse your database.
-
MongoDB Community Server: you'll optionally need this installed, if you want a local copy of your database. You can just use Atlas though, if you want to (see below).
-
As an alternative to MongoDB Community Server, another way of getting a local database running is to use Docker. Once Docker is installed and running, then you can use a command like:
docker run -p 27017:27017 -v wdcc-mongo-volume:/data/db mongo:latest
-
-
Atlas cloud database: You'll need an account here. You should easily be able to get one with an existing Gmail or GitHub account.
-
-
Render: You'll need an account here. You can easily get one with an existing GitHub account. This has a free tier which is sufficient to deploy both our backend and frontend in today's workshop, and has several cheap options if you want to keep a site running long-term.