Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/EronAlves1996/todoMern
https://github.com/EronAlves1996/todoMern
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/EronAlves1996/todoMern
- Owner: EronAlves1996
- Created: 2023-01-29T04:51:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-27T04:04:12.000Z (over 1 year ago)
- Last Synced: 2024-06-30T15:50:11.874Z (5 months ago)
- Language: TypeScript
- Size: 507 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Todo MERN Application
This application was intented to produce a simples PoW by building a MERN Application, doing a graphql API integration, end-to-end.
## Tecnologies used
- MongoDB
- Express
- React
- Node.JS
- Relay
- Graphql-http## Actual Schema
```graphql
"""
Exposes a URL that specifies the behavior of this scalar.
"""
directive @specifiedBy(
"""
The URL that specifies the behavior of this scalar.
"""
url: String!
) on SCALARscalar Date
type Mutation {
createUser(user: UserInput): UserOutput
createTask(deadline: Date!, description: String!): taskOutput
}type Query {
login(email: String!, password: String!): UserOutput
}input taskInput {
description: String!
creationDate: Date!
deadline: Date!
isCompleted: Boolean!
}type taskOutput {
_id: String
description: String!
creationDate: Date!
deadline: Date!
isCompleted: Boolean!
}input UserInput {
email: String!
password: String!
name: String!
}type UserOutput {
_id: String!
email: String!
name: String!
}
```## Running application locally
For running this project, `pnpm` is required.
```sh
$ docker run -p 27017:27017 -d mongo
$ pnpm install
$ pnpm start
```The `start` script will run the application end-to-end. Point your web browser to `http://localhost:3000` to access it. Make calls to the API on `http://localhost:3001`. Please refer to the documentation of each package for details of application.