https://github.com/manucabral/challenge-backend
Alkemy NodeJS backend challenge
https://github.com/manucabral/challenge-backend
api-rest expressjs postgres sequelize
Last synced: 3 months ago
JSON representation
Alkemy NodeJS backend challenge
- Host: GitHub
- URL: https://github.com/manucabral/challenge-backend
- Owner: manucabral
- License: mit
- Created: 2022-09-10T02:15:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-18T04:37:07.000Z (almost 4 years ago)
- Last Synced: 2025-03-16T03:43:44.101Z (over 1 year ago)
- Topics: api-rest, expressjs, postgres, sequelize
- Language: JavaScript
- Homepage:
- Size: 362 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ⚙️ Alkemy Backend Challenge
Disney REST API Backend Challenge by [Alkemy](https://www.alkemy.org/)
🚀 The API is public deployed [here](https://disney-challenge.up.railway.app/)
> Deployed with Railway
📚 See the full documentation [here](https://documenter.getpostman.com/view/11661322/2s7YfU8YVy)
> Documented with Postman
### 📦 Installation
For local usage
```bash
git clone https://github.com/manucabral/challenge-backend.git
cd challenge-backend
npm install
```
Just start the server with
```bash
npm start
```
### 🛠 Development
Starts livereloading server with
```bash
npm run dev
```
Run all tests with
```bash
npm run test
```
#### 📝 Environment variables
Create a `.env` file using the next [example](https://github.com/manucabral/challenge-backend/blob/main/.env.example)
If you not define these variables you may have an **error**
For lazy people, you can fill the genre, movie and user tables enabling **DATABASE_FILL**
#### 🔐 Authorization
If you enabled **DATABASE_FILL** you can use the next account for authenticate
```json
{
"email": "test@gmail.com",
"password": "wowsuperpass"
}
```