A simple app to create and review hotel reservations. Built with Node.js, MongoDB, React, GraphQL, and Apollo.
- Clone the repo.
- Install the dependencies in both the
client
and theserver
folders (npm install
). - Install and run MongoDB.
- Copy the
.env.exampl
file in theserver
folder as.env
, and add the required variables. (If you don't use port 8080, update theclient/src/constants.json
with the port you chose.) - Run the server in a terminal (
npm start
from theserver
folder). - Run the client in a terminal (
npm start
from theclient
folder). - Open
http://localhost:1234
in your browser.
- Graphiql is enabled, so you can browse to
http://localhost:8080/api/graphql
to interact with the server. - The REST endpoints are at
http://localhost:8080/api/v1
, and can be used with something like Insomnia.