-
Couldn't load subscription status.
- Fork 0
Project
Vinicius Reif Biavatti edited this page Jan 20, 2020
·
2 revisions
The first thing we will do is to create our project. For this, we will use the NodeJS Package Manager (NPM) to create the project structure, and install the dependencies:
$ npm init -yThe dependencies we will use are:
- express (To build the Rest API)
- express-graphql (To link GraphQL to express)
- graphql (The graphQL library properly)
To install these dependencies you can use the following command:
$ npm install express express-graphql graphql --saveAlmost done. We will create our entrypoint file called by index.js inside the src folder following the default way for project structures. The project structure will be:
\- node_modules
\- ...
\- src
\- index.js
\- package.json
Very well. In the next step we configure our ExpressJS.