Aluraflix is an application developed in Edition #2 of Alura Challenges, which consists of allowing users to assemble playlists with links to their favorite videos, separated by category.
Edition #2 of Alura Challenges: Develop a Rest API from scratch, choosing languages and technologies, a 4-week challenge to implement a system from database to testing and deployment, with support from experts via Discord.
This project was developed with the following technologies:
Before you begin, you will need to have the following tools installed on your machine:
The project can be built with npm or yarn, so choose one of the approach bellow in case you don't have any installed on your system.
Npm is distributed with Node.js which means that when you download Node.js, you automatically get npm installed on your computer.
- Node.js v16.14.2 or heigher.
Yarn is a package manager created by the Facebook team and seems to be faster than npm in general.
- Yarn v1.22.18 or heigher.
The project uses a database (Postgres), it is necessary to have it on your machine so that you can run it. If not, I suggest using Docker Compose to run a container with the postgres image.
How to run database with Docker Compose locally (linux)
docker-compose up -dAlso, it’s good to have an editor to work with the code like VSCode.
Follow the instructions below to download and use the project from this repository:
You can use yarn or npm as package manager to run this project, but preferably I use npm.
Clone this repository using SSH:
git clone git@github.com:danielhessell/aluraflix-server.gitor clone using https:
git clone git@github.com:danielhessell/aluraflix-server.gitGo to project folder in terminal/cmd:
cd aluraflix-serverInstall dependencies:
npm install --legacy-peer-depsRemember to copy the .env.example file to an .env file, changing the information according to your environment.
Run migrations:
npx prisma generate && npx prisma migrate devRun project:
npm run dev:serverThe server will start on port 3333. Go to http://localhost:3333.
This project has unit and integration testing. Run npm test.
- Fork the project
- Create a new branch with your changes:
git checkout -b my-feature - Save the changes and create a commit message telling what you've done:
git commit -m "feature: My new feature" - Submit your changes:
git push origin my-feature
Caso tenha alguma dúvida confira este guia de como contribuir no GitHub.
This project is under the MIT license. See the LICENSE file for more details.
Made with 💙 by Daniel Hessel.