Giter Site home page Giter Site logo

lemoswilson / tmlssnss_backend Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 50 KB

tmlssnss is an e-commerce platform made with React and CommerceJS API, with added user authentication and history of purchases.

License: MIT License

TypeScript 100.00%

tmlssnss_backend's Introduction

tmlssnss

NPM

About

tmlssnss is an e-commerce platform made with React and CommerceJS API, with added user authentication and history of purchases.

Layout

Tech Stack

Backend

  • NodeJS
  • ExpressJS
  • MongoDB
  • Typescript
  • PassportJS

Frontend

  • HTML / SCSS / TypesScript
  • React
  • CommerceJS

Integrations

  • Stripe
  • CommerceJS
  • Algolia for searching

Production

  • Backend: Heroku
  • Frontend: Netlify
  • Database: MongoDB Atlas

How to run the app

Backend

# clone repo
git clone https://github.com/lemoswilson/tmlssnss_backend

# change to backend directory
cd backend

# install dependencies
npm install

# set environment variables
# create .env file and set your credentials for ATLAS_URI, Google OAuth, as well as a JWT Authorization, and a URL for the frontend.
MONGO_URI=<Your MongoDB URI>
JWT_AUTHORIZATION=<Your JWT Authorization key>
REACT_APP_URL=<The URL for the frontend> 
EMAIL_SERVICE=<Email service provider>
EMAIL_USER=<Email for sending reset password messages>
EMAIL_PASS=<Password for sending emalis>

# compile typescript 
tsc 

# run code
node dist/src/app.js

Frontend

# clone repo
git clone https://github.com/lemoswilson/tmlssnss

# cd to tmlssnss
cd tmlssnss

# install dependencies
npm install

# set environment variables
# create .env file and set the url for the server, your credentials for CommerceJS, Stripe, and Algolia. 
REACT_APP_SERVER_URL=<SERVER URL>
REACT_APP_CHEC_PUBLIC_KEY=<Your Chec/CommerceJS public key>
REACT_APP_CHEC_PRIVATE_KEY=<Your Chec/CommerceJS private key>
REACT_APP_STRIPE_PUBLIC_KEY=<Your Stripe public key>
REACT_APP_STRIPE_PRIVATE_KEY=<Your Stripe private key>
REACT_APP_ALGOLIA_APP_ID=<Your Algolia App ID>
REACT_APP_PUBLIC_ALGOLIA_SEARCH_KEY=<Your Algolia public search key>

# run the project
npm start

Author

Wilson Lemos

https://lemoswilson.com

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.