Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Riko Orlando #39

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
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
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
# mini-wp
# mini World Press

This is a simple application for recording articles

## Installation

Use the package.json

```bash
npm i axios bcrypt cors dotenv express google-auth-library jsonwebtoken mongoose
```

## Routes

| Route | HTTP | Header(s) | Body | Description |
| ----------- | ---- | --------- | ---------------------------------------------------------- | ------------------------ |
| /users/signup | POST | null | {email, password} |Login & get token |
| /user/signin | POST | null | {first_name, last_name,email,password} | Create Account
| /articles | GET | {token} | Null | Get all user articles
| /articles | POST | {token} | {title, content, tags, image file} | Create a articles
| /articles/:id | DELETE | {token} | Null | Delete a articles |
| /articles/:id | PUT | {token} | {title, contante,tags, image file} | Update a articles |


## Deployment

```bash
npm run dev (on folder server)
npm run dev (on folder client) => open on your browser "http://localhost:1234"
```

## Required
you need make file env and fill with:

GOOGLE = [info](https://developers.google.com/identity/sign-in/web/sign-in)

SECRET =

GENPASS =


## License
Riko Orlando
3 changes: 3 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
.cache
19 changes: 19 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="google-signin-client_id" content="743446764204-21l37r58qdv70giujs3p8191243ka83j.apps.googleusercontent.com">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">
<script src="https://apis.google.com/js/platform.js" async defer></script>

<title>MiniWp</title>
</head>
<body>
<div id="app">

</div>
<script src="./scr/main.js"></script>
</body>
</html>
Loading