These instructions will get you a copy of the project up and running on your local machine for development purposes.
You need to install NodeJS on your computer before you can use "GoBarber". You can install NodeJS by following these instructions.
Once you have completed the installation process, try typing npm -v into your command line. You should get a response with the version of NodeJS.
Once you have NodeJs instaled, you need to install Yarn. You can install Yarn by following these instructions.
After instalition, try typing yarn -v into your command line. You should get a response with the version of Yarn.
You need to install Docker on your computer before you can use "GoBarber". You can install Docker by following these instructions.
Once you have completed the installation process, try typing docker -v into your command line. You should get a response with the version of Docker.
If you are using Linux distributions, is recommended following these instructions to manage Docker as a non-root use.
You need to configure PostgreSQL on your computer before you can use "GoBarber". You can configure PostgreSQL by following these instructions.
You need to install and configure a MongoDB on your computer or have a connection string for a database in Atlas cloud.
You can install MongoDB by following these instructions (Mac and Windows).
You need to configure Redis on your computer before you can use "GoBarber". You can configure Redis by following these instructions.
Finally, you will need a rest api client to test "GoBarber". Examples:
It is recommended to install the extension ESLint, Prettier, EditorConfig and edit the code editor' settings:
"files.eol": "\n",
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
After clone repository, go to folder and follow this steps:
- Run
yarnto install dependencies; - Create a postgres database;
- Create a mongo database;
- Create a redis database;
- Create a file
.envbased on the file.env.example; - Put your credentials inside
.env; - Run
yarn sequelize db:migrateto creat the migrations; - Run
yarn sequelize db:seed:allto creat the seed; - Run
yarn devto start de aplication; - Run
yarn queuein another terminal to start de queue.
Now you can use your REST API Client to test "GoBarber".
- NodeJS
- Docker
- PostgreSQL
- Mailtrap.io
- Redis
- Sentry.io
- Sucrase + Nodemon;
- ESLint + Prettier + EditorConfig;
- Sequelize
This project is licensed under the MIT License - see the LICENSE.md file for details.
Based on Rocketseat Bootcamp 🚀