- Install Node.js if you haven't already
- Install yarn
- Install the
create-react-app
package globally:yarn global add create-react-app
- Clone this repository
cd
into the downloaded directorycd
into client and runyarn install
from the command line to install all dependenciescd
into server and runyarn install
from the command line to install all dependencies
- Create mongoDB account - https://account.mongodb.com/account/register
- Create AWS cluster
- Under Security tab, click Database Access, and on the right
add new database user
. After you enter username and password, clickadd user
at the bottom right corner. - Under Security tab, click Network Access, and whitelist your IP address.
- Once your cluster is created, under Clusters tab, click connect and copy the connection string which will look something like this
mongodb+srv://<username>:<password>@cluster0.ioku4.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
. Instead of<username>
there will be your username, and you will need to replace<password>
with your password. - Finally, inside your project folder,
cd
into server, create new file.env
and enterDB=<paste the string from above here>
. It will look similar to thisDB=mongodb+srv://srdjan:[email protected]/reaction?retryWrites=true&w=majority
.
While in the server directory, run npm run dev
to start the live server. The live server will watch for changes to files in the src
directory and reload the page when they're changed.
While developing the app, you can take a look at the static pages that you'll eventually convert into a dynamic application. To do so, visit http://localhost:3000/ui
in the browser.
The starting point of the application is the /client/src/index.js
file. That's where the root component of the application - Application
- is rendered to the DOM. You can add new components to the /client/src/components
folder.