d-fullstack-library directory contains final form of the project.
Install the dependencies and start the server.
cd a-apollo-server
npm install
npm start
Check localhost:4000 to see Apollo Server interface.
- This part uses the server from a-apollo-server, so make sure the server is running before following the steps below.
Install the dependencies.
cd b-library-frontend-apollo-client
npm install
npm start
Check localhost:3000.
Install the dependencies.
cd a-apollo-server
npm install
Create .env file at the root of the project. Set MONGODB_URI=your_mongodb_uri (see)
You can also set database name (e.g fsoLibrary) in uri. It is not mandatory.
Set SECRET_KEY=your_secret_key Start the server.
npm start
Check localhost:4000 to see Apollo Server interface.
This directory contains both the backend and the frontend of ultimate form of the project.
Install the dependencies.
cd apollo-server-mongoose
npm install
Create .env file at the root of the project. Set MONGODB_URI=your_mongodb_uri (see)
You can also set database name (e.g fsoLibrary) in uri. It is not mandatory.
Set SECRET_KEY=your_secret_key Start the server.
npm start
Check localhost:4000 to see Apollo Server interface.
- This part uses the server from apollo-server-mongoose, so make sure the server is running before following the steps below.
Install the dependencies.
cd library-frontend-apollo-client
npm install
npm start
Check localhost:3000.
To use login functionality in the application, you need to manually create a user in MongoDB by Apollo Server
- Navigate to localhost:4000 Apollo Server interface in your browser
- Choose mutation -> createUser respectively
- Fill in required places and click Mutation
Then log in
- Navigate to localhost:3000
- Click login and type your username manually created
- Type secret as password and log in
Certificate link: https://studies.cs.helsinki.fi/stats/api/certificate/fs-graphql/en/8a44720b6aff8026712ae5683bdffb47