- Make sure your NodeJS and npm versions are up to date
or
- Clone the repository
$ git clone https://github.com/boorooksus/response-game.git
- Install dependencies
$ npm install
$ cd client
$ cd install
$ cd ../
- Set up MongoDB
- get URI for MongoDB account.
- create
dev.js
file inserver/config/
. - write code and add you MongoDB URI in it.
module.exports = { mongoURI: "your mongoDB URI", };
- start server and client
$ npm run dev
- Navigate to http://localhost:3000
- React
- React Router
- TypeScript
- Tailwind CSS
- Node.js
- Express.js
- MongoDB
- Install editor
Visual Studio Code
orWebStorm
- Make sure your
NodeJS
andnpm
versions are up to date - get MongoDB URI
- Install project
$ git clone https://github.com/boorooksus/response-game.git
$ cd server
$ npm install
$ cd ../
$ cd client
$ cd install
- Set up MongoDB
- get URI for MongoDB account.
- create
dev.js
file inserver/config/
. - write code and add you MongoDB URI in it.
module.exports = { mongoURI: "your mongoDB URI", };
response-game/
├── client/ # front-end
│ ├── public/ # static files
│ │ └── index.html # html template
│ │
│ └── src/ # project root
│ ├── components/ # application components
│ │ ├── views/ # application views
│ │ │ ├── GamePage/ # images, icons, etc.
│ │ │ │ ├── sections/ # components for the page
│ │ │ │ ├── GamePage.tsx # view for game page
│ │ │ │ └── types.tsx # types for typescript
│ │ │ └── ...
│ │ └── App.tsx
│ ├── index.css # common style css
│ ├── index.tsx
│ ├── ...
│ └── setupProxy.js # proxy settings
│ # for local server
│
├── server/ # back-end
│ ├── config/ # mongoDB key
│ ├── middleware/ # custom middlewares
│ ├── models/ # Database models
│ ├── routes/ # routes for api
│ └── index.js
├── pakage.json # dependencies for server
└── README.md