You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,10 @@
4
4
5
5
A full-fledged Apollo Server with Apollo Client starter project with React and Express. [Read more about it in this tutorial to build it yourself](https://www.robinwieruch.de/graphql-apollo-server-tutorial/).
6
6
7
+
Further Readings:
8
+
*[TODO: write setup tutorial]
9
+
*[TODO: write migration tutorial]
10
+
7
11
**This repository is the fullstack Apollo Server with Express and MongoDB project. You can find a working client application that can be used with this server in the list below:**
@@ -39,27 +43,19 @@ A full-fledged Apollo Server with Apollo Client starter project with React and E
39
43
40
44
#### .env file
41
45
42
-
Since this boilerplate project is using MongoDB, you have to install it for your machine and get a database up and running. You find everything for the set up over here: [Setup MongoDB with Mongoose in Express Tutorial](https://www.robinwieruch.de/mongodb-express-setup-tutorial)[TODO: write tutorial]. After you have created a database and a database user, you can fill out the environment variables in the *server/.env* file.
46
+
Since this boilerplate project is using MongoDB, you have to install it for your machine and get a database up and running. You find everything for the set up over here: [Setup MongoDB with Mongoose in Express Tutorial](https://www.robinwieruch.de/mongodb-express-setup-tutorial)[TODO: write setup tutorial]. After you have created a MongoDB database, you can fill out the environment variables in the *server/.env* file.
43
47
44
48
```
45
-
DATABASE=mydatabase
46
-
47
-
DATABASE_USER=postgres
48
-
DATABASE_PASSWORD=postgres
49
-
50
49
SECRET=asdlplplfwfwefwekwself.2342.dawasdq
51
50
52
-
MONGO_URI=mongodb://localhost:27017/mydatabase
51
+
DATABASE_URL=mongodb://localhost:27017/mydatabase
53
52
```
54
53
55
54
The `SECRET` is just a random string for your authentication. Keep all these information secure by adding the *.env* file to your *.gitignore* file. No third-party should have access to this information.
56
55
57
56
#### Testing
58
57
59
-
[TODO: change psql to MongoDB equivalent]
60
-
61
-
* adjust `test:run-server` npm script with `TEST_DATABASE` environment variable in package.json to match your testing database name
62
-
* to match it from package.json: `createdb mytestdatabase` with psql
58
+
* adjust `test:run-server` npm script with `TEST_DATABASE_URL` environment variable in package.json to match your testing database name
0 commit comments