┏━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━┓
┃ ┃ -------------------> ┃ ┃ -----------------> ┃ ┃
┃ ┃ [HTTP Requests] ┃ ┃ [DB Requests] ┃ ┃
┃ Frontend ┃ ┃ Backend ┃ ┃ Database ┃
┃ Server ┃ ┃ Server ┃ ┃ Instance ┃
┃ ┃ [HTTP Responses] ┃ ┃ [DB Responses] ┃ ┃
┃ ┃ <------------------- ┃ ┃ <----------------- ┃ ┃
┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━┛
React Express.js MongoDB
Tailwind Mongoose/MongoDB Docker
Next.js
- Clone this repository to your computer.
- Put the backend
.env
file in the backend folder, and the database.env
file in the database folder. - Run the following command in the root directory.
npm run setup
- Set up the database
cd database; npm start; cd ..
- Run the following command in the root directory.
cd backend; npm run reset; cd ..
- Run the following command in the root directory.
npm start
- Run the docker container in the Docker app
npm start
Open a new terminal (with the plus button on the top right)
cd frontend; npm run dev