SmartCellStore is a back-end application, an REST API.
- User sign-up and sign-in
- Create cart.
- Order Checkout by Cart User id.
- View products.
https://projeto14-smartcell-store-front.vercel.app/
POST /auth/sign-up
Body | Type | Description |
---|---|---|
name |
string |
Required. user name |
email |
string |
Required. user email |
password |
string |
Required. user password |
confirmPass |
string |
Required. user confirmpass |
{
"message": "User successfully registered!"
}
confirmPass must match password
https://projeto14-smartcell-store-front.vercel.app/
POST /auth/sign-ip
Body | Type | Description |
---|---|---|
email |
string |
Required. user email |
password |
string |
Required. user password |
{
"token": "bcript authorization token"
}
https://projeto14-smartcell-store-front.vercel.app/
POST /products
Body | Type | Description |
---|
{
[...Products]
}
To run this project, you will need to add the following environment variables to your .env file
DATABASE_URL = postgres://UserName:Password@Hostname:5432/DatabaseName
PORT = number #recommended:5000
Clone the project
git clone
Go to the project directory
cd projet
Install dependencies
npm install
Start the server
npm run dev
Run tests
npm test