RK9 monorepo source project, containing the frontend (ReactJS) and backend (Express API server).
- git
- Node.js
- MongoDB Compass (helpful)
Run the following commands at the root of the project, in the following order:
- Contact me for mongo database uri information
- npm install (inside of
packages/backend
andpackages/frontend
) - npm run start (inside of
packages/backend
) - npm run start (inside of
packages/frontend
)
Continue reading below, for a more in-depth explanation on our setup.
- Install backend package dependencies
cd packages/backend
npm install
- Install frontend package dependencies
cd ../frontend
npm install
To get the RK9 backend stack up, please contact me for the mongo database uri, token key, and google cloud key.
- Add port, mongodb uri, and token key to your own
.env
file inpackages/backend
PORT=8080
MONGODB_URI=<provided_uri>
TOKEN_KEY=<provided_key>
- Add a file called
googe-cloud-key.json
inpackages/backend
, and paste the provided information. - Start backend
npm run start
You can now run the frontend in packages/frontend
, once the backend is running.
- Start frontend
cd ../frontend
npm run start
- The browser should automatically load, but if not, open
localhost:3000
in your browser to view live updates.