Skip to content

trda/seslisozluk-simple-ui-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seslisozluk-simple-ui-project

Fast and simple seslisozluk dictionary UI. It is an example project for those who want to learn react, react-router, nodejs, axios.

Demo URL: https://seslisozlukextention.herokuapp.com/

Chrome Extension URL: Sesli Sözlük Modern

Getting Started

If you haven't used webpack before, be sure to check out the Getting Started guide, as it explains how to create a webpack as well as install and how to use webpack-config. Once you're familiar with that process, you may install modules:

npm install

Run webpack

Once the modules has been installed, webpack may be run with this line of JavaScript:

node_modules/.bin/webpack

Start the project

Once the installation is done, you can run some commands inside the project folder

node_modules/.bin/babel-node --presets react,es2015 src/server.js

or

node start

Production Mode

In order to deploy the project into production environment, the definition("NODE_ENV=production") should be added into commands.

NODE_ENV=production node_modules/.bin/webpack -p
NODE_ENV=production node_modules/.bin/babel-node --presets react,es2015 src/server.js

or

npm build
npm start

Now, you can test it on http://localhost:3000