Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# Run the project

```bash
./start-project.sh
```

# Stop running

```bash
./stop-project.sh
```

# API

| Method | Path |
| ------ | ------------------- |
| GET | /api/user/{id} |
| POST | /api/todo/{user_id} |
| PUT | /api/todo/{user_id} |
| DELETE | /api/todo/{user_id} |

# Project description

- `Front-end`: React + MobX + Typescript
- `Back-end`: Go + Redis + MongoDB + Gin

# Mr.fox devhack

To-do list application that allows users to create, edit, and delete tasks, set due dates and reminders, and categorize tasks into different lists.
Expand Down
24 changes: 24 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
13 changes: 13 additions & 0 deletions client/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3"
services:
app:
container_name: react-app
image: docker-react
build:
context: .
volumes:
- /app/node_modules
- .:/app
ports:
- "3000:3000"
stdin_open: true
13 changes: 13 additions & 0 deletions client/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:17.0.1-alpine3.14

WORKDIR '/app'

COPY package.json .

RUN npm install

COPY . .

EXPOSE 3000

CMD [ "npm", "run", "dev" ]
16 changes: 16 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="ONE UNIVERSE" />
<meta name="author" content="ONE UNIVERSE" />
<meta name="keywords" content="ONE UNIVERSE" />
<title>ONE UNIVERSE</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading