-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4442658
commit bc6b084
Showing
1 changed file
with
46 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,67 @@ | ||
# boilerplate using NodeJS GraphQL ReactJS | ||
``` | ||
# Boilerplate for Node.js, GraphQL, and React.js | ||
This is a boilerplate project designed to kickstart your development process using Node.js for the backend, GraphQL for API queries, mutations, and subscriptions, and React.js for the frontend. It's configured to get you up and running quickly with a solid foundation for your project. | ||
## Getting Started | ||
### Clone the Repository | ||
```sh | ||
git clone git@github.com:Monaam12/boilerplate-nodejs-graphQL-react.git | ||
``` | ||
|
||
### Server Setup | ||
|
||
# | ||
clone the repository : | ||
1. Navigate to the server directory: | ||
|
||
```sh | ||
git clone git@github.com:Monaam12/boilerplate-nodejs-graphQL-react.git | ||
cd server | ||
``` | ||
# server | ||
|
||
Run : | ||
2. Install dependencies: | ||
|
||
```sh | ||
cd server && yarn | ||
yarn | ||
``` | ||
|
||
3. Spin up MongoDB using Docker Compose: | ||
|
||
```sh | ||
docker-compose up --build -d mongodb | ||
docker-compose up --build -d mongodb | ||
``` | ||
|
||
4. Start the server: | ||
|
||
```sh | ||
yarn start | ||
yarn start | ||
``` | ||
|
||
# client | ||
### Client Setup | ||
|
||
Run : | ||
1. Navigate to the client directory: | ||
|
||
```sh | ||
cd client && yarn | ||
cd client | ||
``` | ||
|
||
2. Install dependencies: | ||
|
||
```sh | ||
yarn | ||
``` | ||
|
||
3. Start the client: | ||
|
||
```sh | ||
yarn start | ||
``` | ||
yarn start | ||
``` | ||
|
||
## Additional Information | ||
|
||
- **Server**: The server is powered by Node.js and utilizes GraphQL for handling API requests. MongoDB is used as the database, and it's spun up in a Docker container for easy setup. | ||
|
||
- **Client**: The client side is built with React.js, providing a dynamic and interactive user interface. It's configured to communicate with the GraphQL server for fetching and managing data. | ||
|
||
Feel free to customize and extend this boilerplate to suit your project's needs. Happy coding! | ||
``` |