Skip to content

gustavohenriquess/nlw-return

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nlw-return-logo

This project is a crash course from 🚀Rocketseat🚀 focused on building an app from start to finish.

selected track: impulse The project consists of a widget feedback that can be integrated into any website or application.

  • 🌐 Web (Frontend)
  • ⚙️ Server (Backend)
  • 📱 Mobile

Click here to test how it turned out!

Technologies used

  • Typescript
  • NodeJS
  • React
  • React Native
  • Expo
  • Railway
  • Vercel

Libs and Tools

the following are some used libs that I would like to highlight them

🏁 How to run locally 🏁

⚙️ Backend ⚙️

inside the server folder, you need to run the commands below:

  npm install                 //install the dependencies

  npx prisma migrate dev      //Create tables in the database

  npm run dev                 //run the service

server-running

Important!


If you have docker you can run the database with the following line

docker run --name postgres -e "POSTGRES_PASSWORD=Postgres2022!" -p 5432:5432 -d postgres

Remember to create the .env file with the Postgresql database connection

By default the website will run on port 3333.

If you want to change the service port inside the .env file, create the environment variable PORT

🌐 Web (Frontend) 🌐

inside the web folder, you need to run the commands below:

  npm install           //install the dependencies

  npm run dev           //run the service

website-feedget website-WidgetOpen website-WidgetSuccess

Important!


By default the website will run on port 3000

To connect with the backend remember to create the .env.local file (like the example file .env.example)

📱 Mobile 📱

inside the mobile folder, you need to run the commands below:

  yarn install                                //install the dependencies

  yarn start || npm run start || expo start   //run the service

Important!


To call the backend service it is necessary to change the ip in the file in the following path

mobile/src/libs/api.ts

mobile_1 mobile_2 mobile_3 mobile_4

Comments

This repository is aimed at my growth as a developer and with that I want to apply some good practices such as:

Releases

No releases published

Packages

No packages published